- Remove unneeded NANO_SMALL #ifdef, so that it's included
whenever its prototype is, and so it can compile when
DISABLE_OPERATINGDIR isn't defined and NANO_SMALL is. (DLR)
+ do_browser()
+ - Refresh the screen when Ctrl-L is pressed in the file browser,
+ as Pico does. (DLR)
- global.c:
shortcut_init()
- Fix misplaced #endif keeping the "Full Justify" shortcut in
free_charptrarray(filelist, numents);
goto change_browser_directory;
+ /* Refresh the screen. */
+ case NANO_REFRESH_KEY:
+ total_update();
+ break;
+
/* Go to a specific directory. */
case NANO_GOTOLINE_KEY:
case NANO_GOTOLINE_FKEY:
IFHELP(nano_nextpage_msg, NANO_NO_KEY), NANO_NEXTPAGE_FKEY,
NANO_NO_KEY, VIEW, NULL);
+ sc_init_one(&browser_list, NANO_REFRESH_KEY, N_("Refresh"),
+ IFHELP(nano_refresh_msg, NANO_NO_KEY), NANO_NO_KEY,
+ NANO_NO_KEY, VIEW, NULL);
+
/* Translators: try to keep this string under 22 characters long */
sc_init_one(&browser_list, NANO_GOTOLINE_KEY, N_("Go To Dir"),
IFHELP(nano_gotodir_msg, NANO_GOTOLINE_ALTKEY),