Preserve trailing spaces with capture-pane -J, from George Nachman.

This commit is contained in:
Nicholas Marriott
2013-03-04 11:03:03 +00:00
parent 70397e4a95
commit aaeee34c32
5 changed files with 9 additions and 7 deletions

View File

@ -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);