commit 1b3e4e117a5d72db81a175474d86c8210e760646
parent 387952894528eef3b124c843f47731ce3ab7ed25
Author: David Lawrence Ramsey <pooka109@gmail.com>
Date: Tue, 29 Aug 2006 21:11:27 +0000
fix misplaced do_prompt_abort()
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3866 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
Diffstat:
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/src/nano.c b/src/nano.c
@@ -2223,6 +2223,9 @@ int main(int argc, char **argv)
while (TRUE) {
bool meta_key, func_key, s_or_t, ran_func, finished;
+ /* Make sure the statusbar cursor position is reset. */
+ do_prompt_abort();
+
/* Make sure the cursor is in the edit window. */
reset_cursor();
@@ -2248,10 +2251,6 @@ int main(int argc, char **argv)
/* Read in and interpret characters. */
do_input(&meta_key, &func_key, &s_or_t, &ran_func, &finished,
TRUE);
-
- /* Just in case we were in the statusbar prompt, reset the
- * statusbar cursor position. */
- do_prompt_abort();
}
/* We should never get here. */