nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit a95fb64dd6db14b7783edadc584311f3519ea979
parent b235404ade7f19e55a83f93e57ade603ac86117a
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Sat, 24 Feb 2018 19:53:19 +0100

tweaks: remove a superfluous check

A shortcut's function can never be NULL.

Diffstat:
Msrc/prompt.c | 6++----
1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/prompt.c b/src/prompt.c @@ -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; } }