diff -r 11552fe918c3 -r e26894707ac5 joe/main.c --- a/joe/main.c Thu Sep 17 12:51:50 2015 -0400 +++ b/joe/main.c Fri Oct 02 17:22:09 2015 -0400 @@ -211,7 +211,7 @@ } /* Restore modes */ - if (maint->curwin->watom->what & TYPETW) { + if (!leave && maint->curwin->watom->what & TYPETW) { bw = (BW *)maint->curwin->object; if (auto_off) {