aboutsummaryrefslogtreecommitdiff
path: root/grid.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-06-17 18:53:05 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-06-17 18:53:05 +0000
commit963b266cce1cbb81a88fba2175f2d70be86559e4 (patch)
tree43526162833f2d0413f46c8b732119ef400b9063 /grid.c
parentwip: vt parsing: break out grid operating functions (diff)
vt: handle cursor-at-right-edge
When printing to the right-most-cell, don't advance the cursor. Instead, set a flag that indicates that the *next* print should line-wrap.
Diffstat (limited to 'grid.c')
-rw-r--r--grid.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/grid.c b/grid.c
index dc94ceae..3954b64f 100644
--- a/grid.c
+++ b/grid.c
@@ -25,6 +25,7 @@ grid_cursor_move(struct grid *grid, int cols)
grid->cells[new_cursor].dirty = true;
grid->cursor = new_cursor;
grid->dirty = true;
+ grid->print_needs_wrap = false;
}
void