aboutsummaryrefslogtreecommitdiff
path: root/vt.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-06-29 19:08:08 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-06-29 19:08:08 +0000
commit3d2ab03f6220e967796e6d885946c916cae9e238 (patch)
tree7c52a2db9b39163c5ae81fa400ad8ba3bf970c37 /vt.c
parentRename grid_* functions to term_* (diff)
terminal: move col/row count, cell width/height and scroll region to terminal
Diffstat (limited to 'vt.c')
-rw-r--r--vt.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/vt.c b/vt.c
index 842ae3f2..428aad79 100644
--- a/vt.c
+++ b/vt.c
@@ -626,7 +626,7 @@ action(struct terminal *term, enum action action, uint8_t c)
switch (c) {
case '\n':
/* LF - line feed */
- if (term->grid.cursor.row == term->grid.scroll_region.end - 1) {
+ if (term->grid.cursor.row == term->scroll_region.end - 1) {
term_scroll(term, 1);
} else
term_cursor_down(term, 1);
@@ -671,7 +671,7 @@ action(struct terminal *term, enum action action, uint8_t c)
case ACTION_PRINT: {
if (term->grid.print_needs_wrap) {
- if (term->grid.cursor.row == term->grid.scroll_region.end - 1) {
+ if (term->grid.cursor.row == term->scroll_region.end - 1) {
term_scroll(term, 1);
term_cursor_to(term, term->grid.cursor.row, 0);
} else
@@ -694,7 +694,7 @@ action(struct terminal *term, enum action action, uint8_t c)
cell->attrs = term->vt.attrs;
- if (term->grid.cursor.col < term->grid.cols - 1)
+ if (term->grid.cursor.col < term->cols - 1)
term_cursor_right(term, 1);
else
term->grid.print_needs_wrap = true;