vim: Undef `SIGTSTP` to workaround `Ctrl+Z` issue
This commit is contained in:
parent
ea0c7347ea
commit
17b1dff42b
|
@ -7,6 +7,7 @@ TERMUX_PKG_RECOMMENDS="diffutils"
|
||||||
# vim should only be updated every 50 releases on multiples of 50.
|
# vim should only be updated every 50 releases on multiples of 50.
|
||||||
# Update both vim and vim-python to the same version in one PR.
|
# Update both vim and vim-python to the same version in one PR.
|
||||||
TERMUX_PKG_VERSION=8.2.4450
|
TERMUX_PKG_VERSION=8.2.4450
|
||||||
|
TERMUX_PKG_REVISION=1
|
||||||
TERMUX_PKG_SRCURL="https://github.com/vim/vim/archive/v${TERMUX_PKG_VERSION}.tar.gz"
|
TERMUX_PKG_SRCURL="https://github.com/vim/vim/archive/v${TERMUX_PKG_VERSION}.tar.gz"
|
||||||
TERMUX_PKG_SHA256=b0a5acbe83bbdd4b1412abd9dc2ae2e3593c6cff8ff11c551fda3e6e2a87ec81
|
TERMUX_PKG_SHA256=b0a5acbe83bbdd4b1412abd9dc2ae2e3593c6cff8ff11c551fda3e6e2a87ec81
|
||||||
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
||||||
|
|
|
@ -0,0 +1,13 @@
|
||||||
|
--- a/src/os_unix.c
|
||||||
|
+++ b/src/os_unix.c
|
||||||
|
@@ -157,9 +157,9 @@
|
||||||
|
#endif
|
||||||
|
#if defined(SIGTSTP)
|
||||||
|
static RETSIGTYPE sig_tstp SIGPROTOARG;
|
||||||
|
+#endif
|
||||||
|
// volatile because it is used in signal handler sig_tstp() and sigcont_handler().
|
||||||
|
static volatile sig_atomic_t in_mch_suspend = FALSE;
|
||||||
|
-#endif
|
||||||
|
#if defined(SIGINT)
|
||||||
|
static RETSIGTYPE catch_sigint SIGPROTOARG;
|
||||||
|
#endif
|
|
@ -1,7 +1,17 @@
|
||||||
diff -uNr vim-8.2.0000/src/os_unix.h vim-8.2.0000.mod/src/os_unix.h
|
--- a/src/os_unix.h
|
||||||
--- vim-8.2.0000/src/os_unix.h 2019-12-12 15:18:35.000000000 +0200
|
+++ b/src/os_unix.h
|
||||||
+++ vim-8.2.0000.mod/src/os_unix.h 2019-12-20 19:27:51.141441414 +0200
|
@@ -138,6 +138,10 @@
|
||||||
@@ -350,7 +350,7 @@
|
|
||||||
|
#include <signal.h>
|
||||||
|
|
||||||
|
+#ifdef __ANDROID__
|
||||||
|
+#undef SIGTSTP
|
||||||
|
+#endif
|
||||||
|
+
|
||||||
|
#if defined(DIRSIZ) && !defined(MAXNAMLEN)
|
||||||
|
# define MAXNAMLEN DIRSIZ
|
||||||
|
#endif
|
||||||
|
@@ -356,7 +360,7 @@
|
||||||
# ifdef VMS
|
# ifdef VMS
|
||||||
# define DFLT_DIR "./,sys$login:,tmp:"
|
# define DFLT_DIR "./,sys$login:,tmp:"
|
||||||
# else
|
# else
|
|
@ -7,6 +7,7 @@ TERMUX_PKG_RECOMMENDS="diffutils"
|
||||||
# vim should only be updated every 50 releases on multiples of 50.
|
# vim should only be updated every 50 releases on multiples of 50.
|
||||||
# Update both vim and vim-python to the same version in one PR.
|
# Update both vim and vim-python to the same version in one PR.
|
||||||
TERMUX_PKG_VERSION=8.2.4450
|
TERMUX_PKG_VERSION=8.2.4450
|
||||||
|
TERMUX_PKG_REVISION=1
|
||||||
TERMUX_PKG_SRCURL="https://github.com/vim/vim/archive/v${TERMUX_PKG_VERSION}.tar.gz"
|
TERMUX_PKG_SRCURL="https://github.com/vim/vim/archive/v${TERMUX_PKG_VERSION}.tar.gz"
|
||||||
TERMUX_PKG_SHA256=b0a5acbe83bbdd4b1412abd9dc2ae2e3593c6cff8ff11c551fda3e6e2a87ec81
|
TERMUX_PKG_SHA256=b0a5acbe83bbdd4b1412abd9dc2ae2e3593c6cff8ff11c551fda3e6e2a87ec81
|
||||||
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
||||||
|
|
|
@ -0,0 +1,13 @@
|
||||||
|
--- a/src/os_unix.c
|
||||||
|
+++ b/src/os_unix.c
|
||||||
|
@@ -157,9 +157,9 @@
|
||||||
|
#endif
|
||||||
|
#if defined(SIGTSTP)
|
||||||
|
static RETSIGTYPE sig_tstp SIGPROTOARG;
|
||||||
|
+#endif
|
||||||
|
// volatile because it is used in signal handler sig_tstp() and sigcont_handler().
|
||||||
|
static volatile sig_atomic_t in_mch_suspend = FALSE;
|
||||||
|
-#endif
|
||||||
|
#if defined(SIGINT)
|
||||||
|
static RETSIGTYPE catch_sigint SIGPROTOARG;
|
||||||
|
#endif
|
|
@ -1,7 +1,17 @@
|
||||||
diff -uNr vim-8.2.0000/src/os_unix.h vim-8.2.0000.mod/src/os_unix.h
|
--- a/src/os_unix.h
|
||||||
--- vim-8.2.0000/src/os_unix.h 2019-12-12 15:18:35.000000000 +0200
|
+++ b/src/os_unix.h
|
||||||
+++ vim-8.2.0000.mod/src/os_unix.h 2019-12-20 19:27:51.141441414 +0200
|
@@ -138,6 +138,10 @@
|
||||||
@@ -350,7 +350,7 @@
|
|
||||||
|
#include <signal.h>
|
||||||
|
|
||||||
|
+#ifdef __ANDROID__
|
||||||
|
+#undef SIGTSTP
|
||||||
|
+#endif
|
||||||
|
+
|
||||||
|
#if defined(DIRSIZ) && !defined(MAXNAMLEN)
|
||||||
|
# define MAXNAMLEN DIRSIZ
|
||||||
|
#endif
|
||||||
|
@@ -356,7 +360,7 @@
|
||||||
# ifdef VMS
|
# ifdef VMS
|
||||||
# define DFLT_DIR "./,sys$login:,tmp:"
|
# define DFLT_DIR "./,sys$login:,tmp:"
|
||||||
# else
|
# else
|
Loading…
Reference in New Issue