aboutsummaryrefslogtreecommitdiff
path: root/render.c
diff options
context:
space:
mode:
Diffstat (limited to 'render.c')
-rw-r--r--render.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/render.c b/render.c
index 45fe6a6a..e854b6b0 100644
--- a/render.c
+++ b/render.c
@@ -1227,7 +1227,9 @@ maybe_resize(struct terminal *term, int width, int height, bool force)
while (cursor_row < 0)
cursor_row += term->grid->num_rows;
- cursor_row--;
+
+ if (term->cursor.point.col < term->cols - 1)
+ cursor_row--;
assert(cursor_row < term->rows);
term_cursor_to(