+2014-02-25 Benno Schulenberg <bensberg@justemail.net>
+ * src/help.c (do_help_void) - Call the help browser with the correct
+ refresher for afterwards. This solves a bug reported by myself on
+ nano-devel in August 2010: after typing ^R ^T ^W ^G ^X, the file
+ being edited would get displayed instead of the list of files.
+
2014-02-24 Chris Allegretta <chrisa@asty.org>
* new linter functionality. rcfile option "linter"
* src/global.c (shortcut_init) - Actually free the sclist
#endif /* !DISABLE_HELP */
-/* Start the help browser for the edit window. */
+/* Start the help browser. */
void do_help_void(void)
{
-
#ifndef DISABLE_HELP
- /* Start the help browser for the edit window. */
- do_help(&edit_refresh);
+ /* Start the help browser, with the correct refresher for afterwards. */
+ if (currmenu == MBROWSER || currmenu == MWHEREISFILE || currmenu == MGOTODIR)
+ do_help(&browser_refresh);
+ else
+ do_help(&edit_refresh);
#else
if (currmenu == MMAIN)
nano_disabled_msg();