From 2df75aa11727538451d7402b5ad1579d7493ce4c Mon Sep 17 00:00:00 2001 From: nicm Date: Sat, 16 May 2020 15:35:19 +0000 Subject: [PATCH] Use VIS_CSTYLE for paste buffers also. --- paste.c | 2 +- window-buffer.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/paste.c b/paste.c index e98b5771..46f218d2 100644 --- a/paste.c +++ b/paste.c @@ -312,7 +312,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 53dfeca4..74be73a4 100644 --- a/window-buffer.c +++ b/window-buffer.c @@ -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",