refactor(f_has): remove wrong comment (#21561)

Only one of "fork" and "system" should be defined.
Also change the line above "win32" to match Vim.
This commit is contained in:
zeertzjq 2022-12-28 10:05:03 +08:00 committed by GitHub
parent d215dae0e0
commit bf459641a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3036,7 +3036,7 @@ static void f_has(typval_T *argvars, typval_T *rettv, EvalFuncData fptr)
#ifdef UNIX #ifdef UNIX
"unix", "unix",
#endif #endif
#if defined(MSWIN) #ifdef MSWIN
"win32", "win32",
#endif #endif
#ifdef _WIN64 #ifdef _WIN64
@ -3127,7 +3127,7 @@ static void f_has(typval_T *argvars, typval_T *rettv, EvalFuncData fptr)
"spell", "spell",
"syntax", "syntax",
#if !defined(UNIX) #if !defined(UNIX)
"system", // TODO(SplinterOfChaos): This IS defined for UNIX! "system",
#endif #endif
"tablineat", "tablineat",
"tag_binary", "tag_binary",