From ac41587d4e07a00b89d819c22858e225fa373483 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Wed, 30 Nov 2016 13:47:50 +0100 Subject: [PATCH] oops: the yesno prompt for replacing does not want a visible cursor --- src/prompt.c | 3 --- src/winio.c | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/prompt.c b/src/prompt.c index 4bad34d6..34e7b4c0 100644 --- 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 index 77e29680..bdedb17d 100644 --- 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