aboutsummaryrefslogtreecommitdiff
path: root/vt.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-11-17 08:46:20 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-11-17 08:46:20 +0000
commita70fe1f5d76bfc68f77e133f2a6ec25249fd67c7 (patch)
treec294514cfda374a485ac4b728e2f33a7a113009a /vt.c
parentterm: add struct cursor (diff)
term: move lcf flag into 'cursor' struct
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 29c9223e..6aca18ce 100644
--- a/vt.c
+++ b/vt.c
@@ -713,7 +713,7 @@ esc_dispatch(struct terminal *term, uint8_t final)
static inline void
pre_print(struct terminal *term)
{
- if (unlikely(term->lcf) && term->auto_margin) {
+ if (unlikely(term->cursor.lcf) && term->auto_margin) {
if (term->cursor.point.row == term->scroll_region.end - 1) {
term_scroll(term, 1);
term_cursor_to(term, term->cursor.point.row, 0);
@@ -728,7 +728,7 @@ post_print(struct terminal *term)
if (term->cursor.point.col < term->cols - 1)
term_cursor_right(term, 1);
else
- term->lcf = true;
+ term->cursor.lcf = true;
}
static inline void