mirror of
git://git.sv.gnu.org/nano.git
synced 2025-01-24 18:22:07 +03:00
tweaks: remove a superfluous check
A shortcut's function can never be NULL.
This commit is contained in:
parent
b235404ade
commit
a95fb64dd6
@ -169,11 +169,9 @@ int do_statusbar_input(bool *finished)
|
|||||||
* to TRUE to indicate that we're done after running or trying to
|
* to TRUE to indicate that we're done after running or trying to
|
||||||
* run its associated function. */
|
* run its associated function. */
|
||||||
f = sctofunc(shortcut);
|
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)
|
f->func != do_gotolinecolumn_void)
|
||||||
execute(shortcut);
|
execute(shortcut);
|
||||||
}
|
|
||||||
*finished = TRUE;
|
*finished = TRUE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user