term: move lcf flag into 'cursor' struct

This commit is contained in:
Daniel Eklöf 2019-11-17 09:46:20 +01:00
parent d637b8c9ba
commit a70fe1f5d7
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
4 changed files with 16 additions and 16 deletions

4
vt.c
View file

@ -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