summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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