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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user