mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
vim-patch:8.2.4806: a mapping using <LeftDrag> does not start Select mode
Problem: A mapping using <LeftDrag> does not start Select mode.
Solution: When checking for starting select mode with the mouse also do this
when there is typeahead. (closes vim/vim#10249)
53ef573148
This commit is contained in:
parent
2caf5bbbc5
commit
c8fe8c5ea4
@ -5740,10 +5740,10 @@ void start_selection(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Start Select mode, if "c" is in 'selectmode' and not in a mapping or menu.
|
/// Start Select mode, if "c" is in 'selectmode' and not in a mapping or menu.
|
||||||
|
/// When "c" is 'o' (checking for "mouse") then also when mapped.
|
||||||
void may_start_select(int c)
|
void may_start_select(int c)
|
||||||
{
|
{
|
||||||
VIsual_select = (stuff_empty() && typebuf_typed()
|
VIsual_select = (c == 'o' || (stuff_empty() && typebuf_typed())) && vim_strchr(p_slm, c) != NULL;
|
||||||
&& (vim_strchr(p_slm, c) != NULL));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Start Visual mode "c".
|
/// Start Visual mode "c".
|
||||||
|
Loading…
Reference in New Issue
Block a user