From 6deabca3e7da055bc2b26b795f2e2e98b3c70d4e Mon Sep 17 00:00:00 2001 From: erw7 Date: Wed, 24 Feb 2021 15:19:57 +0900 Subject: [PATCH] eval: add fname_case to feature list --- runtime/doc/eval.txt | 2 ++ src/nvim/eval/funcs.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt index 22963a372b..be7c026f5a 100644 --- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -5125,6 +5125,8 @@ has({feature}) Returns 1 if {feature} is supported, 0 otherwise. The iconv Can use |iconv()| for conversion. +shellslash Can use backslashes in filenames (Windows) clipboard |clipboard| provider is available. + fname_case Case in file names matters (for Darwin and MS-Windows + this is not present). mac MacOS system. nvim This is Nvim. python2 Legacy Vim |python2| interface. |has-python| diff --git a/src/nvim/eval/funcs.c b/src/nvim/eval/funcs.c index 79cb1385ea..8c8e0d568b 100644 --- a/src/nvim/eval/funcs.c +++ b/src/nvim/eval/funcs.c @@ -4131,7 +4131,9 @@ static void f_has(typval_T *argvars, typval_T *rettv, FunPtr fptr) #ifdef _WIN64 "win64", #endif +#ifndef CASE_INSENSITIVE_FILENAME "fname_case", +#endif #ifdef HAVE_ACL "acl", #endif