From d4fa36ec446e758a7c167cb2e9c7ce6a69678853 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Haoran=20S=2E=20Diao=20=28=E5=88=81=E6=B5=A9=E7=84=B6=29?= <0@hairydiode.xyz> Date: Fri, 12 Sep 2025 22:59:16 -0700 Subject: Added scroll region restriction --- ptyim.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ptyim.c') 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 -- cgit v1.1