diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2020-05-01 17:59:13 +0100 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2020-05-01 17:59:13 +0100 |
commit | bf84359dfb6ab241fc4e586fcbe8070a838f1f37 (patch) | |
tree | bd3d00d647e008fdf97833e13b35fd2fea4a9ae8 | |
parent | 1fa9bcc18357af43954ddb64a51173d99d83dd54 (diff) | |
download | rtmux-bf84359dfb6ab241fc4e586fcbe8070a838f1f37.tar.gz rtmux-bf84359dfb6ab241fc4e586fcbe8070a838f1f37.tar.bz2 rtmux-bf84359dfb6ab241fc4e586fcbe8070a838f1f37.zip |
Use VIS_CSTYLE for paste buffers also.
-rw-r--r-- | paste.c | 2 | ||||
-rw-r--r-- | window-buffer.c | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -311,7 +311,7 @@ paste_make_sample(struct paste_buffer *pb) { char *buf; size_t len, used; - const int flags = VIS_OCTAL|VIS_TAB|VIS_NL; + const int flags = VIS_OCTAL|VIS_CSTYLE|VIS_TAB|VIS_NL; const size_t width = 200; len = pb->size; diff --git a/window-buffer.c b/window-buffer.c index 4e17a7fa..16adbc61 100644 --- a/window-buffer.c +++ b/window-buffer.c @@ -231,7 +231,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", |