Allow extending word selections to non-word chars

This commit is contained in:
Kovid Goyal
2019-05-16 20:20:03 +05:30
parent 5f33d907aa
commit 9849a69afd
4 changed files with 13 additions and 10 deletions

View File

@@ -309,7 +309,7 @@ multi_click(Window *w, unsigned int count) {
unsigned int y1 = w->mouse_pos.cell_y, y2 = w->mouse_pos.cell_y;
switch(count) {
case 2:
found_selection = screen_selection_range_for_word(screen, w->mouse_pos.cell_x, &y1, &y2, &start, &end);
found_selection = screen_selection_range_for_word(screen, w->mouse_pos.cell_x, &y1, &y2, &start, &end, true);
mode = EXTEND_WORD;
break;
case 3: