diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-07-14 08:49:44 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-07-14 08:49:44 +0000 |
| commit | 01c3a2635dd015910d102c4fa7fff68f1dbb1d7a (patch) | |
| tree | db5248a4670248827063f997d601158ff219f448 /terminal.c | |
| parent | vt: change HT (horizontal tab) to *not* clear LCF (diff) | |
term: linefeed: explicitly clear LCF
LF should always clear LCF. Previously, it was done implicitly in
term_cursor_down(). I.e it was cleared as long as the cursor wasn't at
the bottom of the scrolling region
Diffstat (limited to 'terminal.c')
| -rw-r--r-- | terminal.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -1887,6 +1887,8 @@ void term_linefeed(struct terminal *term) { term->grid->cur_row->linebreak = true; + term->grid->cursor.lcf = false; + if (term->grid->cursor.point.row == term->scroll_region.end - 1) term_scroll(term, 1); else |
