commit 2c5459a1b7cd20bfed1ea9b07fb85247552f1829 parent b561c386c37136f5f62888df66634217b9ccfe07 Author: Benno Schulenberg <bensberg@telfort.nl> Date: Sun, 21 Aug 2022 12:49:52 +0200 tweaks: fold two cases together, because they basically do the same Diffstat:
M | src/browser.c | | | 13 | ++++--------- |
1 file changed, 4 insertions(+), 9 deletions(-)
diff --git a/src/browser.c b/src/browser.c @@ -514,16 +514,11 @@ char *browse(char *path) #endif function = interpret(kbinput); - if (function == full_refresh) { - full_refresh(); + if (function == full_refresh || function == do_help) { + function(); #ifndef NANO_TINY - /* Simulate a terminal resize to force a directory reread. */ - kbinput = KEY_WINCH; -#endif - } else if (function == do_help) { - do_help(); -#ifndef NANO_TINY - /* The terminal dimensions might have changed, so act as if. */ + /* Simulate a terminal resize to force a directory reread, + * or because the terminal dimensions might have changed. */ kbinput = KEY_WINCH; } else if (function == do_toggle && get_shortcut(kbinput)->toggle == NO_HELP) { TOGGLE(NO_HELP);