diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2021-01-03 12:11:46 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-01-04 18:48:42 +0000 |
| commit | 2fd7b2fbd46d773ba43ba5acde365d23de4dda90 (patch) | |
| tree | 7e20ebb7d4c52647b8efeaf99646a7111c51fd7d /terminal.h | |
| parent | selection: find_word_boundary{left,right}: handle composed characters (diff) | |
selection: allow selections to pivot around a range instead of a point
Extend selection pivoting to allow selections to pivot around a
range.
Use this in word- and row-based selections to pivot around the initial
word/row that was selected.
This mimics the behavior of at least urxvt and xterm.
Diffstat (limited to 'terminal.h')
| -rw-r--r-- | terminal.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -368,6 +368,11 @@ struct terminal { bool spaces_only; /* SELECTION_SEMANTIC_WORD */ struct { + struct coord start; + struct coord end; + } pivot; + + struct { int fd; int col; enum selection_scroll_direction direction; |
