aboutsummaryrefslogtreecommitdiff
path: root/vt.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-06-29 19:16:06 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-06-29 19:16:06 +0000
commit8cff861f38c3b82a1504d88a8a067bc32dc10da7 (patch)
treeb6c8bd2f481709f1b47252e3e87fa82d1df2ee99 /vt.c
parentterminal: move cursor from grid to terminal (diff)
terminal: move print_needs_wrap from grid to terminal
Diffstat (limited to 'vt.c')
-rw-r--r--vt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vt.c b/vt.c
index 92991672..c6d05d46 100644
--- a/vt.c
+++ b/vt.c
@@ -670,7 +670,7 @@ action(struct terminal *term, enum action action, uint8_t c)
break;
case ACTION_PRINT: {
- if (term->grid.print_needs_wrap) {
+ if (term->print_needs_wrap) {
if (term->cursor.row == term->scroll_region.end - 1) {
term_scroll(term, 1);
term_cursor_to(term, term->cursor.row, 0);
@@ -697,7 +697,7 @@ action(struct terminal *term, enum action action, uint8_t c)
if (term->cursor.col < term->cols - 1)
term_cursor_right(term, 1);
else
- term->grid.print_needs_wrap = true;
+ term->print_needs_wrap = true;
break;
}