Letting bottombars() set the global variable 'currmenu'.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5183 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
This commit is contained in:
Benno Schulenberg
2015-04-07 14:16:07 +00:00
parent d5177059e8
commit d8b6dbfffe
7 changed files with 8 additions and 18 deletions

View File

@@ -1049,8 +1049,6 @@ void do_insertfile(
bool right_side_up = FALSE, single_line = FALSE;
#endif
currmenu = MINSERTFILE;
while (TRUE) {
#ifndef NANO_TINY
if (execute) {
@@ -2252,8 +2250,6 @@ bool do_writeout(bool exiting)
#endif
bool retval = FALSE;
currmenu = MWRITEFILE;
if (exiting && openfile->filename[0] != '\0' && ISSET(TEMP_FILE)) {
retval = write_file(openfile->filename, NULL, FALSE, OVERWRITE,
FALSE);