aboutsummaryrefslogtreecommitdiff
path: root/grid.c
diff options
context:
space:
mode:
Diffstat (limited to 'grid.c')
-rw-r--r--grid.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/grid.c b/grid.c
index 736a9f64..bc1018d9 100644
--- a/grid.c
+++ b/grid.c
@@ -703,6 +703,11 @@ grid_resize_and_reflow(
}
}
+ if (!old_row->linebreak /*&& col_count > 0*/) {
+ /* Don’t truncate logical lines */
+ col_count = old_cols;
+ }
+
xassert(col_count >= 0 && col_count <= old_cols);
/* Do we have a (at least one) tracking point on this row */