From: Benno Schulenberg Date: Tue, 25 Feb 2014 11:10:24 +0000 (+0000) Subject: Call the help browser with the correct refresher for afterwards. X-Git-Tag: v2.3.3~327 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=4ab142c0aab611556351d1b6f486b420e1f238bf;p=nano.git Call the help browser with the correct refresher for afterwards. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4603 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- diff --git a/ChangeLog b/ChangeLog index ddeb011b..54aaf997 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2014-02-25 Benno Schulenberg + * 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 * new linter functionality. rcfile option "linter" * src/global.c (shortcut_init) - Actually free the sclist diff --git a/src/help.c b/src/help.c index 5cbfed4f..d17f5ee0 100644 --- a/src/help.c +++ b/src/help.c @@ -547,13 +547,15 @@ size_t help_line_len(const char *ptr) #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();