summaryrefslogtreecommitdiff
path: root/ptyim.c
diff options
context:
space:
mode:
Diffstat (limited to 'ptyim.c')
-rw-r--r--ptyim.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ptyim.c b/ptyim.c
index eedffd3..f6434c8 100644
--- a/ptyim.c
+++ b/ptyim.c
@@ -95,6 +95,8 @@ void exit_main() {
restore_stdin();
//clears the screen so the im statusline goes away
write(STDIN_FILENO,"\033[2J", 4);
+ //resets scroll region
+ unrestrict_scroll(STDIN_FILENO);
_exit(0);
}
//hook for when the pty child process dies