mirror of
https://github.com/tmux/tmux.git
synced 2024-12-13 01:48:47 +00:00
Reset selection flag when clearing or stopping selection, from Mark
Kelly.
This commit is contained in:
parent
fa3871b1be
commit
882d0b785d
@ -305,6 +305,7 @@ window_copy_common_init(struct window_mode_entry *wme)
|
|||||||
|
|
||||||
data->cursordrag = CURSORDRAG_NONE;
|
data->cursordrag = CURSORDRAG_NONE;
|
||||||
data->lineflag = LINE_SEL_NONE;
|
data->lineflag = LINE_SEL_NONE;
|
||||||
|
data->selflag = SEL_CHAR;
|
||||||
|
|
||||||
if (wp->searchstr != NULL) {
|
if (wp->searchstr != NULL) {
|
||||||
data->searchtype = WINDOW_COPY_SEARCHUP;
|
data->searchtype = WINDOW_COPY_SEARCHUP;
|
||||||
@ -739,6 +740,7 @@ window_copy_cmd_stop_selection(struct window_copy_cmd_state *cs)
|
|||||||
|
|
||||||
data->cursordrag = CURSORDRAG_NONE;
|
data->cursordrag = CURSORDRAG_NONE;
|
||||||
data->lineflag = LINE_SEL_NONE;
|
data->lineflag = LINE_SEL_NONE;
|
||||||
|
data->selflag = SEL_CHAR;
|
||||||
return (WINDOW_COPY_CMD_NOTHING);
|
return (WINDOW_COPY_CMD_NOTHING);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3360,6 +3362,7 @@ window_copy_clear_selection(struct window_mode_entry *wme)
|
|||||||
|
|
||||||
data->cursordrag = CURSORDRAG_NONE;
|
data->cursordrag = CURSORDRAG_NONE;
|
||||||
data->lineflag = LINE_SEL_NONE;
|
data->lineflag = LINE_SEL_NONE;
|
||||||
|
data->selflag = SEL_CHAR;
|
||||||
|
|
||||||
py = screen_hsize(data->backing) + data->cy - data->oy;
|
py = screen_hsize(data->backing) + data->cy - data->oy;
|
||||||
px = window_copy_find_length(wme, py);
|
px = window_copy_find_length(wme, py);
|
||||||
|
Loading…
Reference in New Issue
Block a user