diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-02-12 18:49:39 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-02-12 18:49:39 +0000 |
| commit | c28c0ab9c2c9a36d20356392fafbf6588abaeb8d (patch) | |
| tree | ddd35d3e8ae7b878a5cf1a3e5d486f9dce2298e0 /render.c | |
| parent | term: formfeed: set linefeed correctly when we're at last column with lcf=1 (diff) | |
render: resize: only stay on current row if col is within grid width
Diffstat (limited to 'render.c')
| -rw-r--r-- | render.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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( |
