aboutsummaryrefslogtreecommitdiff
path: root/cmd-capture-pane.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2013-03-04 11:03:03 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2013-03-04 11:03:03 +0000
commitaaeee34c3250892c8a20e9c95efe66c1d0ec4be2 (patch)
tree71ddef687aed06d4eab527d00c2ec630253ac566 /cmd-capture-pane.c
parent70397e4a957eefc2808c600214d8f7689caead71 (diff)
downloadrtmux-aaeee34c3250892c8a20e9c95efe66c1d0ec4be2.tar.gz
rtmux-aaeee34c3250892c8a20e9c95efe66c1d0ec4be2.tar.bz2
rtmux-aaeee34c3250892c8a20e9c95efe66c1d0ec4be2.zip
Preserve trailing spaces with capture-pane -J, 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 118bf946..e9251389 100644
--- a/cmd-capture-pane.c
+++ b/cmd-capture-pane.c
@@ -111,7 +111,7 @@ cmd_capture_pane_exec(struct cmd *self, struct cmd_q *cmdq)
gc = NULL;
for (i = top; i <= bottom; i++) {
line = grid_string_cells(gd, 0, i, sx, &gc, with_codes,
- escape_c0);
+ escape_c0, !join_lines);
linelen = strlen(line);
buf = xrealloc(buf, 1, len + linelen + 1);