diff options
author | zeertzjq <zeertzjq@outlook.com> | 2025-02-07 07:05:44 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-07 07:05:44 +0800 |
commit | 5371659524089b425887af1ce14bf9a374f0f234 (patch) | |
tree | bad054a186fff635c5f99e4a988b0aa3d1e3a610 /src | |
parent | 5f54f03285964d355744f0fdfca796b2d73af1d1 (diff) | |
parent | 7c43f1128d7deb9ecbe5bf747b441c7afcb736ab (diff) | |
download | rneovim-5371659524089b425887af1ce14bf9a374f0f234.tar.gz rneovim-5371659524089b425887af1ce14bf9a374f0f234.tar.bz2 rneovim-5371659524089b425887af1ce14bf9a374f0f234.zip |
Merge pull request #32358 from zeertzjq/vim-8.2.0849
vim-patch:8.2.{0849,0931},9.1.1081
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/eval.lua | 1 | ||||
-rw-r--r-- | src/nvim/eval/funcs.c | 5 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/nvim/eval.lua b/src/nvim/eval.lua index 9d787c68ea..a7a564fa88 100644 --- a/src/nvim/eval.lua +++ b/src/nvim/eval.lua @@ -5119,6 +5119,7 @@ M.funcs = { fname_case Case in file names matters (for Darwin and MS-Windows this is not present). gui_running Nvim has a GUI. + hurd GNU/Hurd system. iconv Can use |iconv()| for conversion. linux Linux system. mac MacOS system. diff --git a/src/nvim/eval/funcs.c b/src/nvim/eval/funcs.c index c125bd8893..8e83b3d146 100644 --- a/src/nvim/eval/funcs.c +++ b/src/nvim/eval/funcs.c @@ -3075,9 +3075,12 @@ static void f_gettext(typval_T *argvars, typval_T *rettv, EvalFuncData fptr) static void f_has(typval_T *argvars, typval_T *rettv, EvalFuncData fptr) { static const char *const has_list[] = { -#if defined(BSD) && !defined(__APPLE__) +#if defined(BSD) && !defined(__APPLE__) && !defined(__GNU__) "bsd", #endif +#ifdef __GNU__ + "hurd", +#endif #ifdef __linux__ "linux", #endif |