+2016-03-29 Benno Schulenberg <bensberg@justemail.net>
+ * src/nano.c (main): Place the cursor in the edit window also when
+ --constantshow is in effect.
+
2016-03-28 Benno Schulenberg <bensberg@justemail.net>
* src/winio.c (statusbar): Don't bother putting back the cursor in
the edit window, as it is off anyway, and will be placed back in the
display_buffer();
while (TRUE) {
- /* Make sure the cursor is in the edit window. */
- reset_cursor();
- wnoutrefresh(edit);
+ currmenu = MMAIN;
+ focusing = FALSE;
/* If constant cursor position display is on, and there are no
* keys waiting in the input buffer, display the current cursor
if (ISSET(CONST_UPDATE) && get_key_buffer_len() == 0)
do_cursorpos(TRUE);
- currmenu = MMAIN;
- focusing = FALSE;
-
- /* Turn the cursor on when waiting for input. */
+ /* Place the cursor in the edit window and make it visible. */
+ reset_cursor();
curs_set(1);
+ wnoutrefresh(edit);
/* Read in and interpret characters. */
do_input(TRUE);