+2014-07-01 Benno Schulenberg <bensberg@justemail.net>
+ * src/browser.c (do_browser), src/help.c (do_help): Make sure
+ to always set 'currmenu', so that we can rely on it.
+
2014-06-30 Mark Majeres <mark@engine12.com>
* src/cut.c, src/global.c, src/nano.c: Rename 'cut_till_end' to
'cut_till_eof', and 'do_cut_till_end' to 'do_cut_till_eof', to
curs_set(0);
blank_statusbar();
-#if !defined(DISABLE_HELP) || !defined(DISABLE_MOUSE)
currmenu = MBROWSER;
-#endif
bottombars(MBROWSER);
wnoutrefresh(bottomwin);
browser_refresh, _("Go To Directory"));
curs_set(0);
-#if !defined(DISABLE_HELP) || !defined(DISABLE_MOUSE)
currmenu = MBROWSER;
-#endif
bottombars(MBROWSER);
/* If the directory begins with a newline (i.e. an
size_t last_line = 0;
/* The line number in help_text of the last help line. This
* variable is zero-based. */
-#ifndef DISABLE_MOUSE
int oldmenu = currmenu;
/* The menu we were called from. */
-#endif
const char *ptr;
/* The current line of the help text. */
size_t old_line = (size_t)-1;
assert(help_text != NULL);
-#ifndef DISABLE_MOUSE
/* Set currmenu to allow clicking on the help screen's shortcut
* list, after help_init() is called. */
currmenu = MHELP;
-#endif
if (ISSET(NO_HELP)) {
/* Make sure that the help screen's shortcut list will actually
}
}
-#ifndef DISABLE_MOUSE
currmenu = oldmenu;
-#endif
if (old_no_help) {
blank_bottombars();