Commit Diff
--- st.c +++ st.c @@ -965,6 +965,9 @@ tsetdirt(int top, int bot) { int i; + if (term.row <= 0) + return; + LIMIT(top, 0, term.row-1); LIMIT(bot, 0, term.row-1); @@ -2358,6 +2361,7 @@ eschandle(uchar ascii) resettitle(); xloadcols(); xsetmode(0, MODE_HIDE); + xsetmode(0, MODE_BRCKTPASTE); break; case '=': /* DECPAM -- Application keypad */ xsetmode(1, MODE_APPKEYPAD);
