--- a/cmd-capture-pane.c
+++ b/cmd-capture-pane.c
@@ -111,7 +111,7 @@
 		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);