Make has(android/termux) return true in vim

This commit is contained in:
shadmansaleh 2021-09-16 16:32:19 +06:00 committed by Henrik Grimler
parent 994dcc0a07
commit 4f5d80bc29
2 changed files with 14 additions and 0 deletions

View File

@ -7,6 +7,7 @@ TERMUX_PKG_RECOMMENDS="diffutils"
# 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.
TERMUX_PKG_VERSION=8.2.2800
TERMUX_PKG_REVISION=1
TERMUX_PKG_SRCURL="https://github.com/vim/vim/archive/v${TERMUX_PKG_VERSION}.tar.gz"
TERMUX_PKG_SHA256=14bda51b9a21c992b5ab39e9ac0f1306717f6a1aacf6892d87d0fb1a40865cf7
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="

View File

@ -0,0 +1,13 @@
diff --git a/src/evalfunc.c b/src/evalfunc.c
index 16d9be3..cec0e4f 100644
--- a/src/evalfunc.c
+++ b/src/evalfunc.c
@@ -4922,6 +4922,8 @@ f_has(typval_T *argvars, typval_T *rettv)
0
#endif
},
+ {"android", 1},
+ {"termux", 1},
{"fname_case",
#ifndef CASE_INSENSITIVE_FILENAME
1