aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--terminal.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/terminal.c b/terminal.c
index 25f83e07..fa1a13ba 100644
--- a/terminal.c
+++ b/terminal.c
@@ -2427,9 +2427,10 @@ term_print(struct terminal *term, wchar_t wc, int width)
}
/* Advance cursor */
- if (term->grid->cursor.point.col < term->cols - 1)
- term_cursor_right(term, 1);
- else
+ if (term->grid->cursor.point.col < term->cols - 1) {
+ term->grid->cursor.point.col++;
+ assert(!term->grid->cursor.lcf);
+ } else
term->grid->cursor.lcf = true;
}