diff --git a/ChangeLog b/ChangeLog index 6b7a12b68e30212c6d58ae48f4eee5c8c546ecf1..af18179c69b07dbc741e3fecfecae113dd097ffd 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 3f26c7b2e22fab3d526327b306a87ae119b419d0..ecb87a71618991a84836adf2aacdb66bbd964970 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);