diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2019-11-17 08:39:43 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2019-11-17 08:39:43 +0000 |
| commit | c1088d77ac24f6655d430005711d2515f3f169ec (patch) | |
| tree | 475681511be530f9dde54570bd64b3df0035b9cb /terminal.c | |
| parent | csi: el/ed/dch/ich/ech: reset 'print_needs_wrap' (lcf) (diff) | |
term: rename: print_needs_wrap -> lcf (Last Column Flag)
Diffstat (limited to 'terminal.c')
| -rw-r--r-- | terminal.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -855,7 +855,7 @@ term_reset(struct terminal *term, bool hard) term->colors.bg = term->colors.default_bg; for (size_t i = 0; i < 256; i++) term->colors.table[i] = term->colors.default_table[i]; - term->print_needs_wrap = false; + term->lcf = false; term->cursor = (struct coord){0, 0}; term->saved_cursor = (struct coord){0, 0}; term->alt_saved_cursor = (struct coord){0, 0}; @@ -1024,7 +1024,7 @@ term_cursor_to(struct terminal *term, int row, int col) assert(row < term->rows); assert(col < term->cols); - term->print_needs_wrap = false; + term->lcf = false; term->cursor.col = col; term->cursor.row = row; @@ -1045,7 +1045,7 @@ term_cursor_left(struct terminal *term, int count) int move_amount = min(term->cursor.col, count); term->cursor.col -= move_amount; assert(term->cursor.col >= 0); - term->print_needs_wrap = false; + term->lcf = false; } void @@ -1054,7 +1054,7 @@ term_cursor_right(struct terminal *term, int count) int move_amount = min(term->cols - term->cursor.col - 1, count); term->cursor.col += move_amount; assert(term->cursor.col < term->cols); - term->print_needs_wrap = false; + term->lcf = false; } void |
