mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-30 11:10:23 -04:00
selection: wip: update selection word-wise when initial selection was by word
This commit is contained in:
parent
482690e5fb
commit
30de262d29
5 changed files with 95 additions and 58 deletions
|
|
@ -181,6 +181,7 @@ enum mouse_reporting {
|
|||
enum cursor_style { CURSOR_BLOCK, CURSOR_UNDERLINE, CURSOR_BAR };
|
||||
|
||||
enum selection_kind { SELECTION_NONE, SELECTION_NORMAL, SELECTION_BLOCK };
|
||||
enum selection_semantic { SELECTION_SEMANTIC_NONE, SELECTION_SEMANTIC_WORD};
|
||||
enum selection_direction {SELECTION_UNDIR, SELECTION_LEFT, SELECTION_RIGHT};
|
||||
enum selection_scroll_direction {SELECTION_SCROLL_NOT, SELECTION_SCROLL_UP, SELECTION_SCROLL_DOWN};
|
||||
|
||||
|
|
@ -359,6 +360,7 @@ struct terminal {
|
|||
|
||||
struct {
|
||||
enum selection_kind kind;
|
||||
enum selection_semantic semantic;
|
||||
enum selection_direction direction;
|
||||
struct coord start;
|
||||
struct coord end;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue