commit ac41587d4e07a00b89d819c22858e225fa373483
parent e4b8d6fab53c36c8b480df658e83ae7c37335815
Author: Benno Schulenberg <bensberg@justemail.net>
Date: Wed, 30 Nov 2016 13:47:50 +0100
oops: the yesno prompt for replacing does not want a visible cursor
Diffstat:
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/prompt.c b/src/prompt.c
@@ -794,9 +794,6 @@ int do_yesno_prompt(bool all, const char *msg)
wnoutrefresh(edit);
wnoutrefresh(bottomwin);
- /* Ensure that the cursor is visible when waiting for input. */
- curs_set(1);
-
currmenu = MYESNO;
kbinput = get_kbinput(bottomwin);
diff --git a/src/winio.c b/src/winio.c
@@ -2079,6 +2079,9 @@ void warn_and_shortly_pause(const char *msg)
statusbar(msg);
beep();
napms(1800);
+
+ /* Switch the cursor back on after displaying the message. */
+ curs_set(1);
}
/* Display a message on the statusbar, and set suppress_cursorpos to