commit 9054e3a2ae35ffd586e5e225f683b02463619547
parent 1b3e4e117a5d72db81a175474d86c8210e760646
Author: David Lawrence Ramsey <pooka109@gmail.com>
Date: Tue, 29 Aug 2006 21:14:12 +0000
fix breakage
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3867 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
Diffstat:
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/nano.c b/src/nano.c
@@ -2223,9 +2223,6 @@ 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();
@@ -2240,6 +2237,10 @@ int main(int argc, char **argv)
}
#endif
+ /* Just in case we were at the statusbar prompt, make sure the
+ * statusbar cursor position is reset. */
+ do_prompt_abort();
+
/* If constant cursor position display is on, and there are no
* keys waiting in the input buffer, display the current cursor
* position on the statusbar. */