mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-25 17:52:02 +02:00
When dragging word or line selections, ensure the initially selected item is never deselected
This matches behavior in most other programs Fixes #3930
This commit is contained in:
@@ -42,12 +42,16 @@ typedef struct {
|
||||
bool rectangle_select, adjusting_start;
|
||||
IterationData last_rendered;
|
||||
int sort_y, sort_x;
|
||||
struct {
|
||||
SelectionBoundary start, end;
|
||||
unsigned int scrolled_by;
|
||||
} initial_extent;
|
||||
} Selection;
|
||||
|
||||
typedef struct {
|
||||
Selection *items;
|
||||
size_t count, capacity, last_rendered_count;
|
||||
bool in_progress;
|
||||
bool in_progress, extension_in_progress;
|
||||
SelectionExtendMode extend_mode;
|
||||
} Selections;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user