Commit a95fb64d authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

tweaks: remove a superfluous check

A shortcut's function can never be NULL.
No related merge requests found
Showing with 2 additions and 4 deletions
+2 -4
......@@ -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;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment