summaryrefslogtreecommitdiff
path: root/usr.bin/tmux
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2017-01-02 22:42:20 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2017-01-02 22:42:20 +0000
commita5e7ad730896ad52a9de155aedf79a1ba7ef46c3 (patch)
tree083f800787299b98ab51c34cadec8bcd7fc73214 /usr.bin/tmux
parentc4178e97b24b3eb86ea6d1a133fd9811a08ff6ef (diff)
Escape backspace for capture-pane -P, from George Nachman.
Diffstat (limited to 'usr.bin/tmux')
-rw-r--r--usr.bin/tmux/cmd-capture-pane.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/cmd-capture-pane.c b/usr.bin/tmux/cmd-capture-pane.c
index 0772b7512dc..cf9cdc3e315 100644
--- a/usr.bin/tmux/cmd-capture-pane.c
+++ b/usr.bin/tmux/cmd-capture-pane.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd-capture-pane.c,v 1.41 2016/10/16 19:04:05 nicm Exp $ */
+/* $OpenBSD: cmd-capture-pane.c,v 1.42 2017/01/02 22:42:19 nicm Exp $ */
/*
* Copyright (c) 2009 Jonathan Alvarado <radobobo@users.sourceforge.net>
@@ -77,7 +77,7 @@ cmd_capture_pane_pending(struct args *args, struct window_pane *wp,
buf = xstrdup("");
if (args_has(args, 'C')) {
for (i = 0; i < linelen; i++) {
- if (line[i] >= ' ') {
+ if (line[i] >= ' ' && line[i] != '\\') {
tmp[0] = line[i];
tmp[1] = '\0';
} else