summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/cmd-capture-pane.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2017-01-02 22:42:19 +0000
committernicm <nicm@openbsd.org>2017-01-02 22:42:19 +0000
commitaaf5d87b3bf2b456de963bc220caeca909063c30 (patch)
tree4f2ed1bd78b155f1721ef7de6c062da5a36774fc /usr.bin/tmux/cmd-capture-pane.c
parentdiff from jesper wallin to remove commas in one of the queue examples; (diff)
downloadwireguard-openbsd-aaf5d87b3bf2b456de963bc220caeca909063c30.tar.xz
wireguard-openbsd-aaf5d87b3bf2b456de963bc220caeca909063c30.zip
Escape backspace for capture-pane -P, from George Nachman.
Diffstat (limited to 'usr.bin/tmux/cmd-capture-pane.c')
-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