tweaks: remove a superfluous check

A shortcut's function can never be NULL.
master
Benno Schulenberg 2018-02-24 19:53:19 +01:00
parent b235404ade
commit a95fb64dd6
1 changed files with 2 additions and 4 deletions

View File

@ -169,11 +169,9 @@ 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 (shortcut->func != NULL) {
if (f && (!ISSET(VIEW_MODE) || f->viewok) &&
if (f && (!ISSET(VIEW_MODE) || f->viewok) &&
f->func != do_gotolinecolumn_void)
execute(shortcut);
}
execute(shortcut);
*finished = TRUE;
}
}