Fix triple-click to select line not working when the entire line is filled
Fixes #703
This commit is contained in:
parent
321e5081ed
commit
23fbf6f157
@ -9,6 +9,9 @@ Changelog
|
|||||||
- macOS: Add an option :opt:`macos_window_resizable` to control if kitty
|
- macOS: Add an option :opt:`macos_window_resizable` to control if kitty
|
||||||
top-level windows are resizable using the mouse or not (:iss:`698`)
|
top-level windows are resizable using the mouse or not (:iss:`698`)
|
||||||
|
|
||||||
|
- Fix triple-click to select line not working when the entire line is filled
|
||||||
|
(:iss:`703`)
|
||||||
|
|
||||||
|
|
||||||
0.11.2 [2018-07-01]
|
0.11.2 [2018-07-01]
|
||||||
------------------------------
|
------------------------------
|
||||||
|
|||||||
@ -1764,7 +1764,7 @@ screen_selection_range_for_line(Screen *self, index_type y, index_type *start, i
|
|||||||
index_type xlimit = line->xnum, xstart = 0;
|
index_type xlimit = line->xnum, xstart = 0;
|
||||||
while (xlimit > 0 && CHAR_IS_BLANK(line->cpu_cells[xlimit - 1].ch)) xlimit--;
|
while (xlimit > 0 && CHAR_IS_BLANK(line->cpu_cells[xlimit - 1].ch)) xlimit--;
|
||||||
while (xstart < xlimit && CHAR_IS_BLANK(line->cpu_cells[xstart].ch)) xstart++;
|
while (xstart < xlimit && CHAR_IS_BLANK(line->cpu_cells[xstart].ch)) xstart++;
|
||||||
*start = xstart; *end = xlimit;
|
*start = xstart; *end = xlimit - 1;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user