mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-11 05:33:55 -04:00
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.
This commit is contained in:
parent
c821914e67
commit
2fd7b2fbd4
2 changed files with 83 additions and 26 deletions
|
|
@ -367,6 +367,11 @@ struct terminal {
|
|||
bool ongoing;
|
||||
bool spaces_only; /* SELECTION_SEMANTIC_WORD */
|
||||
|
||||
struct {
|
||||
struct coord start;
|
||||
struct coord end;
|
||||
} pivot;
|
||||
|
||||
struct {
|
||||
int fd;
|
||||
int col;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue