make sure that the statusbar cursor position is always properly reset

when we get out of all statusbar prompts


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3865 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
This commit is contained in:
David Lawrence Ramsey
2006-08-29 20:54:38 +00:00
parent 185dc6acd0
commit 3879528945
4 changed files with 16 additions and 13 deletions

View File

@@ -766,13 +766,11 @@ void do_insertfile(
if (tmp == NULL)
continue;
/* We have a file now. Indicate this. */
free(answer);
answer = tmp;
/* We have a file now. Indicate this and get out of the
* statusbar prompt cleanly. */
i = 0;
do_prompt_abort();
}
#endif
@@ -1825,12 +1823,9 @@ int do_writeout(bool exiting)
if (tmp == NULL)
continue;
/* We have a file now. Indicate this. */
free(answer);
answer = tmp;
/* We have a file now. Get out of the statusbar prompt
* cleanly. */
do_prompt_abort();
} else
#endif /* !DISABLE_BROWSER */
#ifndef NANO_TINY