nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit 72e8bcb02730e2f1a8fe087e113d6728221fe2c4
parent 7401670d5889c7203ddb61e34257595378e39e75
Author: Benno Schulenberg <bensberg@justemail.net>
Date:   Wed, 30 Nov 2016 11:11:06 +0100

tweaks: move a switching on of the cursor to a more logical place

Diffstat:
Msrc/prompt.c | 3+++
Msrc/winio.c | 2--
2 files changed, 3 insertions(+), 2 deletions(-)

diff --git 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 @@ -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