From: Mao-Yining Date: Wed, 22 Jul 2026 09:44:53 +0000 (+0000) Subject: runtime(doc): improve suggested detection method for WSL X-Git-Tag: v9.2.0829~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=726ce3094d12d683a95476b17ef39a91f5134351;p=thirdparty%2Fvim.git runtime(doc): improve suggested detection method for WSL Current method can't work in Windows Terminal as far as I know. This is a way that already had been adopted in `dist/vim9.vim`. closes: #20714 Signed-off-by: Mao-Yining Signed-off-by: Christian Brabandt --- diff --git a/runtime/doc/os_win32.txt b/runtime/doc/os_win32.txt index 694e0fe75c..666f265ec9 100644 --- a/runtime/doc/os_win32.txt +++ b/runtime/doc/os_win32.txt @@ -1,4 +1,4 @@ -*os_win32.txt* For Vim version 9.2. Last change: 2026 Feb 14 +*os_win32.txt* For Vim version 9.2. Last change: 2026 Jul 22 VIM REFERENCE MANUAL by George Reilly @@ -48,7 +48,7 @@ For compiling see "src/INSTALLpc.txt". *win32-compiling* *WSL* When using Vim on WSL (Windows Subsystem for Linux) the remarks here do not apply, `has('win32')` will return false then. In case you need to know -whether Vim is running on WSL you can use `exists('$WSLENV')`. +whether Vim is running on WSL you can use `exists('$WSL_DISTRO_NAME')`. ============================================================================== 1. Known problems *win32-problems*