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:
Kovid Goyal
2021-08-13 20:23:43 +05:30
parent f3333ce941
commit dbc7e8e85d
4 changed files with 55 additions and 8 deletions

View File

@@ -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;