aboutsummaryrefslogtreecommitdiff
path: root/vt.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-11-17 08:39:43 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-11-17 08:39:43 +0000
commitc1088d77ac24f6655d430005711d2515f3f169ec (patch)
tree475681511be530f9dde54570bd64b3df0035b9cb /vt.c
parentcsi: el/ed/dch/ich/ech: reset 'print_needs_wrap' (lcf) (diff)
term: rename: print_needs_wrap -> lcf (Last Column Flag)
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 79e9871e..7b1e9948 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->print_needs_wrap) && term->auto_margin) {
+ if (unlikely(term->lcf) && term->auto_margin) {
if (term->cursor.row == term->scroll_region.end - 1) {
term_scroll(term, 1);
term_cursor_to(term, term->cursor.row, 0);
@@ -728,7 +728,7 @@ post_print(struct terminal *term)
if (term->cursor.col < term->cols - 1)
term_cursor_right(term, 1);
else
- term->print_needs_wrap = true;
+ term->lcf = true;
}
static inline void