term: rename: print_needs_wrap -> lcf (Last Column Flag)

This commit is contained in:
Daniel Eklöf 2019-11-17 09:39:43 +01:00
parent f74026ba9b
commit c1088d77ac
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->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