forked from aniani/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 #10249)
This commit is contained in:
@@ -5527,12 +5527,13 @@ 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
|
void
|
||||||
may_start_select(int c)
|
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@@ -746,6 +746,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
4806,
|
||||||
/**/
|
/**/
|
||||||
4805,
|
4805,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user