From 65bf04060bf68c37660bd595ee82fc0eabbab3f1 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Sat, 24 Feb 2018 19:57:56 +0100 Subject: [PATCH] tweaks: remove another superfluous check Commit bb667beb removed do_gotolinecolumn_void() from the MWHEREIS menu (replacing it with the empty flip_goto() function), so there is no longer any need to check for this one special case. --- src/prompt.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/prompt.c b/src/prompt.c index 8a3aa8fc..f025c770 100644 --- a/src/prompt.c +++ b/src/prompt.c @@ -169,8 +169,7 @@ int do_statusbar_input(bool *finished) * to TRUE to indicate that we're done after running or trying to * run its associated function. */ f = sctofunc(shortcut); - if (f && (!ISSET(VIEW_MODE) || f->viewok) && - f->func != do_gotolinecolumn_void) + if (f && (!ISSET(VIEW_MODE) || f->viewok)) execute(shortcut); *finished = TRUE; }