From b8e0e22d6428bd63ff68b541db2e9afa47b6c990 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Wed, 10 Feb 2016 20:16:50 +0000 Subject: [PATCH] Switching the cursor on in the right place: in the central input routine. This makes the cursor visible again during linting. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5628 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- ChangeLog | 2 ++ src/nano.c | 3 --- src/winio.c | 3 +++ 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 44b979ec..332fcba6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -7,6 +7,8 @@ proper range to be rebound. This fixes Savannah bug #47025. * THANKS: Add a Spanish, a Catalan, and a Croat translator. * AUTHORS, THANKS: Remove SVN Id tags and a duplication. + * src/winio.c (get_kbinput), src/nano.c (main): Switch the cursor on + in the right place: in the central input routine. 2016-02-09 Benno Schulenberg * src/files.c (stat_with_alloc, open_buffer, write_file): Check the diff --git a/src/nano.c b/src/nano.c index 164b40d1..272b41b8 100644 --- a/src/nano.c +++ b/src/nano.c @@ -1604,9 +1604,6 @@ int do_input(bool allow_funcs) const sc *s; bool have_shortcut; - /* Turn the cursor on when waiting for input. */ - curs_set(1); - /* Read in a character. */ input = get_kbinput(edit); diff --git a/src/winio.c b/src/winio.c index 21a4a6c2..e53054f6 100644 --- a/src/winio.c +++ b/src/winio.c @@ -311,6 +311,9 @@ int get_kbinput(WINDOW *win) { int kbinput; + /* Turn the cursor on when waiting for input. */ + curs_set(1); + /* Read in a character and interpret it. Continue doing this until * we get a recognized value or sequence. */ while ((kbinput = parse_kbinput(win)) == ERR) -- 2.39.5