summaryrefslogtreecommitdiffstatshomepage
path: root/test/functional/vimscript/executable_spec.lua
diff options
context:
space:
mode:
authorJan Edmund Lazo <janedmundlazo@hotmail.com>2026-04-18 01:55:17 -0400
committerGitHub <noreply@github.com>2026-04-18 13:55:17 +0800
commit48035739a48299d521a4956fcdae0d973a867b12 (patch)
tree17ed7c978b1077122dadc031193bbd4a651acbf3 /test/functional/vimscript/executable_spec.lua
parent062d0a74b46957e51aacdbb81ac69c086c21f075 (diff)
vim-patch:9.1.2004: MS-Windows: executable() cannot find file in directory with single char (#39183)
Problem: MS-Windows: If a directory with a single character name is included in the PATH environment variable without a trailing path separator, executable() will not be able to find the executable file under it. Solution: The second argument of the after_pathsep() function is now passed the next pointer where a path separator may exist (Muraoka Taro). As a specific example, the default installation path for PowerShell v7 is "C:\Program Files\PowerShell\7", but if you set this as is in the PATH environment variable, Vim will not be able to find the pwsh.exe command. In this case, Vim will try to search for "C:\Program Files\PowerShell\7pwsh.exe". Cause: The after_pathsep() function determines whether the location passed as its second argument immediately follows a path separator. However, in the code where the problem occurred, the second argument was passed a location that might contain a path separator. As a result, it was mistakenly determined that a path separator was present in cases where the final directory name was a single character and not followed by a path separator, and the path to search was incorrect. closes: vim/vim#18979 https://github.com/vim/vim/commit/bd686d85dc2b1488ab10c723125d654e0e2d7ef4 Co-authored-by: Muraoka Taro <koron.kaoriya@gmail.com>
Diffstat (limited to 'test/functional/vimscript/executable_spec.lua')
0 files changed, 0 insertions, 0 deletions