diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2023-03-27 14:53:41 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2023-03-27 14:53:41 +0000 |
| commit | 296e75f4f54f56be7d36fcccb032dca9e5be959b (patch) | |
| tree | f987c1796a20415dad23b0a6b7942ca65eec0a1a /terminal.h | |
| parent | slave: set $TERM_PROGRAM and $TERM_PROGRAM_VERSION environment variables (diff) | |
render: fix glitchy selection while resizing the ‘normal’ screen
The selection coordinates are in absolute row numbers. As such,
selection breaks when interactively resizing the normal grid, since we
then instantiate a temporary grid mapping directly to the current
viewport (for performance reason, to avoid reflowing the entire grid
over and over again).
Fix by stashing the actual selection coordinates, and ajusting the
"active" ones to the temporary grid.
Diffstat (limited to 'terminal.h')
| -rw-r--r-- | terminal.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -604,6 +604,7 @@ struct terminal { int old_cols; /* term->cols before resize started */ int old_hide_cursor; /* term->hide_cursor before resize started */ int new_rows; /* New number of scrollback rows */ + struct range selection_coords; } interactive_resizing; struct { |
