From f7ff6e85e8a4e84cff023f5db4b66ef85986605a Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sun, 23 Mar 2014 15:13:05 +0100 Subject: 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. --- src/menu.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/menu.c') 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) -- cgit v1.2.1