summaryrefslogtreecommitdiff
path: root/src/normal.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/normal.c')
-rw-r--r--src/normal.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/normal.c b/src/normal.c
index 563492551..e44b51320 100644
--- a/src/normal.c
+++ b/src/normal.c
@@ -5527,12 +5527,13 @@ start_selection(void)
/*
* 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)
{
- VIsual_select = (stuff_empty() && typebuf_typed()
- && (vim_strchr(p_slm, c) != NULL));
+ VIsual_select = (c == 'o' || (stuff_empty() && typebuf_typed()))
+ && vim_strchr(p_slm, c) != NULL;
}
/*