summaryrefslogtreecommitdiff
path: root/src/menu.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2014-03-23 15:13:05 +0100
committerBram Moolenaar <Bram@vim.org>2014-03-23 15:13:05 +0100
commitf7ff6e85e8a4e84cff023f5db4b66ef85986605a (patch)
tree813913a9c1d1418b5b85e3a4bc414dbeb2b3f6a3 /src/menu.c
parenta68783751647e3243ca6f22df62907efbdbccb02 (diff)
downloadvim-f7ff6e85e8a4e84cff023f5db4b66ef85986605a.zip
updated for version 7.4.212
Problem: Now that the +visual feature is always enabled the #ifdefs for it are not useful. Solution: Remove the checks for FEAT_VISUAL.
Diffstat (limited to 'src/menu.c')
-rw-r--r--src/menu.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/menu.c b/src/menu.c
index 42cf67eb9..d2ae1b05e 100644
--- a/src/menu.c
+++ b/src/menu.c
@@ -1640,7 +1640,6 @@ get_menu_index(menu, state)
idx = MENU_INDEX_INSERT;
else if (state & CMDLINE)
idx = MENU_INDEX_CMDLINE;
-#ifdef FEAT_VISUAL
else if (VIsual_active)
{
if (VIsual_select)
@@ -1648,7 +1647,6 @@ get_menu_index(menu, state)
else
idx = MENU_INDEX_VISUAL;
}
-#endif
else if (state == HITRETURN || state == ASKMORE)
idx = MENU_INDEX_CMDLINE;
else if (finish_op)
@@ -1811,14 +1809,12 @@ menu_is_tearoff(name)
static int
get_menu_mode()
{
-#ifdef FEAT_VISUAL
if (VIsual_active)
{
if (VIsual_select)
return MENU_INDEX_SELECT;
return MENU_INDEX_VISUAL;
}
-#endif
if (State & INSERT)
return MENU_INDEX_INSERT;
if ((State & CMDLINE) || State == ASKMORE || State == HITRETURN)