Index: src/text.c =================================================================== --- src/text.c (revision 5650) +++ src/text.c (working copy) @@ -608,6 +608,7 @@ openfile->placewewant = xplustabs(); openfile->totsize = u->wassize; set_modified(); + focusing = TRUE; } /* Redo the last thing(s) we undid. */ @@ -742,6 +743,7 @@ openfile->placewewant = xplustabs(); openfile->totsize = u->newsize; set_modified(); + focusing = TRUE; } #endif /* !NANO_TINY */ Index: src/nano.c =================================================================== --- src/nano.c (revision 5649) +++ src/nano.c (working copy) @@ -2673,6 +2673,7 @@ do_cursorpos(TRUE); currmenu = MMAIN; + focusing = FALSE; /* Turn the cursor on when waiting for input. */ curs_set(1);