Index: src/text.c =================================================================== --- src/text.c (revision 5601) +++ src/text.c (working copy) @@ -2753,9 +2753,6 @@ /* Restore the terminal to its previous state. */ terminal_init(); - /* Turn the cursor back on for sure. */ - curs_set(1); - if (!WIFEXITED(alt_spell_status) || WEXITSTATUS(alt_spell_status) != 0) { #ifndef NANO_TINY /* Turn the mark back on if it was on before. */ @@ -3301,9 +3298,6 @@ /* Restore the terminal to its previous state. */ terminal_init(); - /* Turn the cursor back on for sure. */ - curs_set(1); - if (!WIFEXITED(format_status) || WEXITSTATUS(format_status) != 0) finalstatus = invocation_error(openfile->syntax->formatter); else { Index: src/winio.c =================================================================== --- src/winio.c (revision 5601) +++ src/winio.c (working copy) @@ -2117,6 +2117,9 @@ return; } + /* Turn the cursor off while fiddling in the statusbar. */ + curs_set(0); + blank_statusbar(); bar = charalloc(mb_cur_max() * (COLS - 3)); Index: src/nano.c =================================================================== --- src/nano.c (revision 5601) +++ src/nano.c (working copy) @@ -1348,9 +1348,6 @@ /* Restore the terminal to its previous state. */ terminal_init(); - /* Turn the cursor back on for sure. */ - curs_set(1); - /* Redraw the contents of the windows that need it. */ blank_statusbar(); wnoutrefresh(bottomwin); @@ -1409,9 +1406,6 @@ /* 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. */ @@ -1612,6 +1606,9 @@ 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); @@ -2540,9 +2537,6 @@ /* Set up the terminal state. */ terminal_init(); - /* Turn the cursor on for sure. */ - curs_set(1); - #ifdef DEBUG fprintf(stderr, "Main: set up windows\n"); #endif