diff options
author | 2020-05-16 15:35:19 +0000 | |
---|---|---|
committer | 2020-05-16 15:35:19 +0000 | |
commit | da484ce13455b30f24e608d95817be73723c7043 (patch) | |
tree | 99766c8700d0f8980d33fd7ea5337f0907e6ad9d /usr.bin/tmux/window-buffer.c | |
parent | Do not hoke into struct window_pane from the tty code and instead set (diff) | |
download | wireguard-openbsd-da484ce13455b30f24e608d95817be73723c7043.tar.xz wireguard-openbsd-da484ce13455b30f24e608d95817be73723c7043.zip |
Use VIS_CSTYLE for paste buffers also.
Diffstat (limited to 'usr.bin/tmux/window-buffer.c')
-rw-r--r-- | usr.bin/tmux/window-buffer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/window-buffer.c b/usr.bin/tmux/window-buffer.c index 3c9c02b2948..2bb78a34ce6 100644 --- a/usr.bin/tmux/window-buffer.c +++ b/usr.bin/tmux/window-buffer.c @@ -1,4 +1,4 @@ -/* $OpenBSD: window-buffer.c,v 1.28 2020/05/16 15:24:28 nicm Exp $ */ +/* $OpenBSD: window-buffer.c,v 1.29 2020/05/16 15:35:19 nicm Exp $ */ /* * Copyright (c) 2017 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -233,7 +233,7 @@ window_buffer_draw(__unused void *modedata, void *itemdata, while (end != pdata + psize && *end != '\n') end++; buf = xreallocarray(buf, 4, end - start + 1); - utf8_strvis(buf, start, end - start, VIS_OCTAL|VIS_TAB); + utf8_strvis(buf, start, end - start, VIS_OCTAL|VIS_CSTYLE|VIS_TAB); if (*buf != '\0') { screen_write_cursormove(ctx, cx, cy + i, 0); screen_write_nputs(ctx, sx, &grid_default_cell, "%s", |