Commit 7561b1b0 authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

Placing the cursor in the edit window also when --constantshow is in effect.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5770 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
No related merge requests found
Showing with 9 additions and 7 deletions
+9 -7
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> 2016-03-28 Benno Schulenberg <bensberg@justemail.net>
* src/winio.c (statusbar): Don't bother putting back the cursor in * 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 the edit window, as it is off anyway, and will be placed back in the
......
...@@ -2632,9 +2632,8 @@ int main(int argc, char **argv) ...@@ -2632,9 +2632,8 @@ int main(int argc, char **argv)
display_buffer(); display_buffer();
while (TRUE) { while (TRUE) {
/* Make sure the cursor is in the edit window. */ currmenu = MMAIN;
reset_cursor(); focusing = FALSE;
wnoutrefresh(edit);
/* If constant cursor position display is on, and there are no /* If constant cursor position display is on, and there are no
* keys waiting in the input buffer, display the current cursor * keys waiting in the input buffer, display the current cursor
...@@ -2642,11 +2641,10 @@ int main(int argc, char **argv) ...@@ -2642,11 +2641,10 @@ int main(int argc, char **argv)
if (ISSET(CONST_UPDATE) && get_key_buffer_len() == 0) if (ISSET(CONST_UPDATE) && get_key_buffer_len() == 0)
do_cursorpos(TRUE); do_cursorpos(TRUE);
currmenu = MMAIN; /* Place the cursor in the edit window and make it visible. */
focusing = FALSE; reset_cursor();
/* Turn the cursor on when waiting for input. */
curs_set(1); curs_set(1);
wnoutrefresh(edit);
/* Read in and interpret characters. */ /* Read in and interpret characters. */
do_input(TRUE); do_input(TRUE);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment