commit 65bf04060bf68c37660bd595ee82fc0eabbab3f1
parent a95fb64dd6db14b7783edadc584311f3519ea979
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Sat, 24 Feb 2018 19:57:56 +0100
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.
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git 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;
}