|
| 1 | +The first two hunks of patch are applied directly to the pregenerated documentation files. |
| 2 | +This means it must be (re)created from the release tarballs if it needs to be regenerated! |
| 3 | + |
| 4 | +Modifying `src/nvim/eval.lua` and then recreating the documentation files with `make doc` |
| 5 | +would in principle be possible as part of the `termux_step_host_build()` function. |
| 6 | +However as of time of writing, March 6. 2026 (Neovim version 0.11.6) I have not been able |
| 7 | +to successfully produce modified docs for Neovim at build time. |
| 8 | + |
| 9 | +Please make sure to retain this header comment if you regenerating this patch. |
| 10 | +diff --git a/runtime/doc/vimfn.txt b/runtime/doc/vimfn.txt |
| 11 | +index 8f52e14..7c35094 100644 |
| 12 | +--- a/runtime/doc/vimfn.txt |
| 13 | ++++ b/runtime/doc/vimfn.txt |
| 14 | +@@ -4624,6 +4624,10 @@ has({feature}) *has()* |
| 15 | + win32 Windows system (32 or 64 bit). |
| 16 | + win64 Windows system (64 bit). |
| 17 | + wsl WSL (Windows Subsystem for Linux) system. |
| 18 | ++ android Alias for has('termux') |
| 19 | ++ termux Termux environment (The *termux* and *android* |
| 20 | ++ feature flags are {included additionally} |
| 21 | ++ in Termux's Neovim package.) |
| 22 | + |
| 23 | + *has-patch* |
| 24 | + 3. Vim patch. For example the "patch123" feature means that |
| 25 | +diff --git a/runtime/lua/vim/_meta/vimfn.lua b/runtime/lua/vim/_meta/vimfn.lua |
| 26 | +index 1a13885..491a48b 100644 |
| 27 | +--- a/runtime/lua/vim/_meta/vimfn.lua |
| 28 | ++++ b/runtime/lua/vim/_meta/vimfn.lua |
| 29 | +@@ -4175,6 +4175,10 @@ function vim.fn.globpath(path, expr, nosuf, list, allinks) end |
| 30 | + --- win32 Windows system (32 or 64 bit). |
| 31 | + --- win64 Windows system (64 bit). |
| 32 | + --- wsl WSL (Windows Subsystem for Linux) system. |
| 33 | ++--- android Alias for has('termux') |
| 34 | ++--- termux Termux environment (The *termux* and *android* |
| 35 | ++--- feature flags are {included additionally} |
| 36 | ++--- in Termux's Neovim package.) |
| 37 | + --- |
| 38 | + --- *has-patch* |
| 39 | + --- 3. Vim patch. For example the "patch123" feature means that |
| 40 | +diff --git a/src/nvim/eval/funcs.c b/src/nvim/eval/funcs.c |
| 41 | +index 752b367..349b7c3 100644 |
| 42 | +--- a/src/nvim/eval/funcs.c |
| 43 | ++++ b/src/nvim/eval/funcs.c |
| 44 | +@@ -3087,6 +3087,8 @@ static void f_has(typval_T *argvars, typval_T *rettv, EvalFuncData fptr) |
| 45 | + #ifdef _WIN64 |
| 46 | + "win64", |
| 47 | + #endif |
| 48 | ++ "android", |
| 49 | ++ "termux", |
| 50 | + #ifndef CASE_INSENSITIVE_FILENAME |
| 51 | + "fname_case", |
| 52 | + #endif |
0 commit comments