From 01c3a2635dd015910d102c4fa7fff68f1dbb1d7a Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Tue, 14 Jul 2020 10:49:44 +0200 Subject: 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 --- terminal.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'terminal.c') diff --git a/terminal.c b/terminal.c index e02255bc..4ed34f63 100644 --- a/terminal.c +++ b/terminal.c @@ -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 -- cgit v1.3