'focusing' when searching only for filenames.
* src/browser.c (findnextfile, do_filesearch, do_fileresearch):
Greatly simplify the searching for the next matching filename.
+ * src/{browser,files,help,prompt,text,winio}.c: Let the function
+ bottombars() set the global variable 'currmenu' -- the displayed
+ menu must necessarily be the active one.
2015-04-05 Benno Schulenberg <bensberg@justemail.net>
* doc/texinfo/nano.texi: Expand on nano's features, condense the
curs_set(0);
blank_statusbar();
- currmenu = MBROWSER;
bottombars(MBROWSER);
wnoutrefresh(bottomwin);
browser_refresh, _("Go To Directory"));
curs_set(0);
- currmenu = MBROWSER;
bottombars(MBROWSER);
/* If the directory begins with a newline (i.e. an
* shortcut list to the browser shortcut list, and displaying it. */
void filesearch_abort(void)
{
- currmenu = MBROWSER;
bottombars(MBROWSER);
}
bool right_side_up = FALSE, single_line = FALSE;
#endif
- currmenu = MINSERTFILE;
-
while (TRUE) {
#ifndef NANO_TINY
if (execute) {
#endif
bool retval = FALSE;
- currmenu = MWRITEFILE;
-
if (exiting && openfile->filename[0] != '\0' && ISSET(TEMP_FILE)) {
retval = write_file(openfile->filename, NULL, FALSE, OVERWRITE,
FALSE);
assert(help_text != NULL);
- /* Set currmenu to allow clicking on the help screen's shortcut
- * list, after help_init() is called. */
- currmenu = MHELP;
-
if (ISSET(NO_HELP)) {
/* Make sure that the help screen's shortcut list will actually
* be displayed. */
}
}
- currmenu = oldmenu;
-
if (old_no_help) {
blank_bottombars();
wnoutrefresh(bottomwin);
+ currmenu = oldmenu;
SET(NO_HELP);
window_init();
} else
- bottombars(currmenu);
+ bottombars(oldmenu);
curs_set(1);
refresh_func();
prompt = charalloc(((COLS - 4) * mb_cur_max()) + 1);
- currmenu = menu;
bottombars(menu);
va_start(ap, msg);
/* Display the shortcut list with UnJustify. */
uncutfunc->desc = unjust_tag;
- currmenu = MMAIN;
display_main_list();
/* Now get a keystroke and see if it's unjustify. If not, put back
/* Cleanup things to do after leaving the linter. */
void lint_cleanup(void)
{
- currmenu = MMAIN;
display_main_list();
}
return;
}
- currmenu = MLINTER;
bottombars(MLINTER);
tmplint = NULL;
curlint = lints;
subnfunc *f;
const sc *s;
+ /* Set the global variable to the given menu. */
+ currmenu = menu;
+
if (ISSET(NO_HELP))
return;