From 72e8bcb02730e2f1a8fe087e113d6728221fe2c4 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Wed, 30 Nov 2016 11:11:06 +0100 Subject: [PATCH] tweaks: move a switching on of the cursor to a more logical place --- src/prompt.c | 3 +++ src/winio.c | 2 -- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/prompt.c b/src/prompt.c index 34e7b4c0..4bad34d6 100644 --- a/src/prompt.c +++ b/src/prompt.c @@ -794,6 +794,9 @@ 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 ca3484d1..77e29680 100644 --- a/src/winio.c +++ b/src/winio.c @@ -2079,8 +2079,6 @@ void warn_and_shortly_pause(const char *msg) statusbar(msg); beep(); napms(1800); - - curs_set(1); } /* Display a message on the statusbar, and set suppress_cursorpos to