diff --git a/src/browser.c b/src/browser.c index 2ade2aec..5ca75035 100644 --- a/src/browser.c +++ b/src/browser.c @@ -493,7 +493,7 @@ char *browse(char *path) #endif function = interpret(kbinput); - if (function == full_refresh || function == do_help) { + if (function == do_help || function == full_refresh) { function(); #ifndef NANO_TINY /* Simulate a terminal resize to force a directory reread, diff --git a/src/help.c b/src/help.c index b881769b..83c4d7b6 100644 --- a/src/help.c +++ b/src/help.c @@ -486,10 +486,8 @@ void show_help(void) #endif function = interpret(kbinput); - if (function == full_refresh) { - full_refresh(); - } else if (ISSET(SHOW_CURSOR) && (function == do_left || function == do_right || - function == do_up || function == do_down)) { + if (ISSET(SHOW_CURSOR) && (function == do_left || function == do_right || + function == do_up || function == do_down)) { function(); } else if (function == do_up || function == do_scroll_up) { do_scroll_up(); @@ -516,6 +514,8 @@ void show_help(void) } else if (kbinput == THE_WINDOW_RESIZED) { ; /* Nothing to do. */ #endif + } else if (function == full_refresh) { + full_refresh(); } else if (function == do_exit) { break; } else