diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2019-07-04 17:56:50 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2019-07-04 17:56:50 +0000 |
| commit | 4a35aa9724dfa9f5b74b4ff4c1af8f478e36a91b (patch) | |
| tree | 0b195d58d3879a23b8c324013091b5ab5e4ed41d | |
| parent | resize: re-align grid offset (diff) | |
resize: cursor reset was off-by-one when cursor was outside new size
| -rw-r--r-- | main.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -568,8 +568,8 @@ resize(struct context *c, int width, int height) term_cursor_to( &c->term, - min(c->term.cursor.row, c->term.rows), - min(c->term.cursor.col, c->term.cols)); + min(c->term.cursor.row, c->term.rows - 1), + min(c->term.cursor.col, c->term.cols - 1)); term_damage_all(&c->term); |
