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