summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/window-copy.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2020-05-25 18:19:30 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2020-05-25 18:19:30 +0000
commitdf97d6c521ff0cb1c13c50b4e0336c8bd590e26a (patch)
tree60f1b3bbec6ee4a58bc779bc02951e2e0dbe7b1d /usr.bin/tmux/window-copy.c
parent2bfac6f56290229136501d06294a5b7b75e7a081 (diff)
Tidy up new UTF-8 code and make it more generic.
Diffstat (limited to 'usr.bin/tmux/window-copy.c')
-rw-r--r--usr.bin/tmux/window-copy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/window-copy.c b/usr.bin/tmux/window-copy.c
index cc25e6fbc5a..50e037d6bad 100644
--- a/usr.bin/tmux/window-copy.c
+++ b/usr.bin/tmux/window-copy.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: window-copy.c,v 1.290 2020/05/25 12:12:58 nicm Exp $ */
+/* $OpenBSD: window-copy.c,v 1.291 2020/05/25 18:19:29 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -2571,7 +2571,7 @@ window_copy_cellstring(const struct grid_line *gl, u_int px, size_t *size,
return (&gce->data.data);
}
- utf8_get_big(gl->extddata[gce->offset].data, &ud);
+ utf8_to_data(gl->extddata[gce->offset].data, &ud);
*size = ud.size;
*allocated = 1;