termux-packages/packages/vim/vim-patch-8.2.4480-fix-ctrl-z.patch
Tee KOBAYASHI 17daad4316 vim: Fix suspending with Ctrl+Z
Effectively reverts commit 17b1dff42b.
2022-02-27 22:00:48 +09:00

19 lines
501 B
Diff

https://github.com/vim/vim/commit/cbef12e60b2c5a4f026172ab9873deaab2e70cf2
diff --git a/src/os_unix.c b/src/os_unix.c
index d36eb46a2c47..58f8276fb595 100644
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -887,8 +887,10 @@ sig_tstp SIGDEFARG(sigarg)
else
got_tstp = TRUE;
- // this is not required on all systems, but it doesn't hurt anybody
+#ifndef __ANDROID__
+ // this is not required on all systems
signal(SIGTSTP, (RETSIGTYPE (*)())sig_tstp);
+#endif
SIGRETURN;
}
#endif