mirror of
https://github.com/neovim/neovim.git
synced 2025-09-13 06:48:17 +00:00
win: has("wsl") on Windows Subsystem for Linux #7330
Per CMAKE docs, CMAKE_HOST_SYSTEM_VERSION is the result of `uname -r`: https://cmake.org/cmake/help/v3.4/variable/CMAKE_HOST_SYSTEM_VERSION.html?highlight=uname A numeric version string for the system. On systems that support uname, this variable is set to the output of uname -r. On other systems this is set to major-minor version numbers. On Windows it is something like "6.1", so it won't match ".*-Microsoft". Closes #7329
This commit is contained in:

committed by
Justin M. Keyes

parent
8728a5d50b
commit
5d2dd2ebe2
@@ -10671,6 +10671,9 @@ static void f_has(typval_T *argvars, typval_T *rettv, FunPtr fptr)
|
||||
"windows",
|
||||
"winaltkeys",
|
||||
"writebackup",
|
||||
#if defined(HAVE_WSL)
|
||||
"wsl",
|
||||
#endif
|
||||
"nvim",
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user