aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--terminal.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/terminal.c b/terminal.c
index 76318d90..99ef16d7 100644
--- a/terminal.c
+++ b/terminal.c
@@ -2354,11 +2354,15 @@ print_linewrap(struct terminal *term)
return;
}
+ term->grid->cursor.lcf = false;
if (term->grid->cursor.point.row == term->scroll_region.end - 1)
term_scroll(term, 1);
- else
- term_cursor_down(term, 1);
- term_cursor_left(term, term->grid->cursor.point.col);
+ else {
+ assert(term->grid->cursor.point.row < term->scroll_region.end - 1);
+ term->grid->cursor.point.row++;
+ }
+
+ term->grid->cursor.point.col = 0;
}
static inline void