diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2019-11-17 08:46:20 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2019-11-17 08:46:20 +0000 |
| commit | a70fe1f5d76bfc68f77e133f2a6ec25249fd67c7 (patch) | |
| tree | c294514cfda374a485ac4b728e2f33a7a113009a /vt.c | |
| parent | term: add struct cursor (diff) | |
term: move lcf flag into 'cursor' struct
Diffstat (limited to 'vt.c')
| -rw-r--r-- | vt.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |
