summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/paste.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2020-05-16 15:35:19 +0000
committernicm <nicm@openbsd.org>2020-05-16 15:35:19 +0000
commitda484ce13455b30f24e608d95817be73723c7043 (patch)
tree99766c8700d0f8980d33fd7ea5337f0907e6ad9d /usr.bin/tmux/paste.c
parentDo not hoke into struct window_pane from the tty code and instead set (diff)
downloadwireguard-openbsd-da484ce13455b30f24e608d95817be73723c7043.tar.xz
wireguard-openbsd-da484ce13455b30f24e608d95817be73723c7043.zip
Use VIS_CSTYLE for paste buffers also.
Diffstat (limited to 'usr.bin/tmux/paste.c')
-rw-r--r--usr.bin/tmux/paste.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/paste.c b/usr.bin/tmux/paste.c
index 48cab16721f..9e257239abf 100644
--- a/usr.bin/tmux/paste.c
+++ b/usr.bin/tmux/paste.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: paste.c,v 1.41 2020/05/16 15:24:28 nicm Exp $ */
+/* $OpenBSD: paste.c,v 1.42 2020/05/16 15:35:19 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -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;