From a70fe1f5d76bfc68f77e133f2a6ec25249fd67c7 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Sun, 17 Nov 2019 09:46:20 +0100 Subject: term: move lcf flag into 'cursor' struct --- vt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vt.c') 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 -- cgit v1.3