summaryrefslogtreecommitdiffstats
path: root/cmd-capture-pane.c
diff options
context:
space:
mode:
authornicm <nicm>2017-01-02 22:42:19 +0000
committernicm <nicm>2017-01-02 22:42:19 +0000
commit43e8f60bc6e962fe6e9b432ac650d0d7a7f0c86c (patch)
treeca60b997552285112f9f0b38c14bdad1630c40cc /cmd-capture-pane.c
parent1015b124d5ccb4c9d32f0c5aae820f7a1ac98c5c (diff)
Escape backspace for capture-pane -P, from George Nachman.
Diffstat (limited to 'cmd-capture-pane.c')
-rw-r--r--cmd-capture-pane.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd-capture-pane.c b/cmd-capture-pane.c
index 1ed00b9e..913738e9 100644
--- a/cmd-capture-pane.c
+++ b/cmd-capture-pane.c
@@ -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