From 2d825bae79d47e155e4fe9f21bf3866a3079ee92 Mon Sep 17 00:00:00 2001 From: David Lawrence Ramsey Date: Sun, 20 Mar 2005 21:20:47 +0000 Subject: [PATCH] after (re)initializing the terminal, make sure the cursor is always turned on git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2406 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- ChangeLog | 4 ++++ src/nano.c | 12 +++++++++--- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 6b7a12b6..af18179c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,8 @@ CVS code - +- General: + - After (re)initializing the terminal, make sure the cursor is + always turned on. Changes to do_alt_speller(), + handle_sigwinch(), and main(). (DLR) GNU nano 1.3.6 - 2005.03.20 - General: diff --git a/src/nano.c b/src/nano.c index 3f26c7b2..ecb87a71 100644 --- a/src/nano.c +++ b/src/nano.c @@ -2196,6 +2196,9 @@ const char *do_alt_speller(char *tempfile_name) /* Restore the terminal to its previous state. */ terminal_init(); + /* Turn the cursor back on for sure. */ + curs_set(1); + #ifndef NANO_SMALL if (old_mark_set) { size_t part_totsize; @@ -3439,6 +3442,9 @@ void handle_sigwinch(int s) /* Restore the terminal to its previous state. */ terminal_init(); + /* Turn the cursor back on for sure. */ + curs_set(1); + /* Do the equivalent of what both mutt and Minimum Profit do: * Reinitialize all the windows based on the new screen * dimensions. */ @@ -3449,9 +3455,6 @@ void handle_sigwinch(int s) currshortcut = main_list; total_refresh(); - /* Turn the cursor back on for sure. */ - curs_set(1); - /* Reset all the input routines that rely on character sequences. */ reset_kbinput(); @@ -4340,6 +4343,9 @@ int main(int argc, char **argv) initscr(); terminal_init(); + /* Turn the cursor on for sure. */ + curs_set(1); + /* Set up the global variables and the shortcuts. */ global_init(FALSE); shortcut_init(FALSE); -- 2.39.5