0
0
mirror of https://github.com/vim/vim.git synced 2025-07-04 23:07:33 -04:00

runtime: Fix problem of checking wrong cwd for ruby ftplugin (#13026)

Co-authored-by: Anton Sharonov <anton.sharonov@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Anton Sharonov (ant0sha) 2023-09-04 22:21:00 +02:00 committed by GitHub
parent 544be0d893
commit 282a94be99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -77,7 +77,7 @@ function! s:query_path(root) abort
let cwd = fnameescape(getcwd()) let cwd = fnameescape(getcwd())
try try
exe cd fnameescape(a:root) exe cd fnameescape(a:root)
if fnamemodify(exepath('ruby'), ':p:h') ==# getcwd() if fnamemodify(exepath('ruby'), ':p:h') ==# cwd
let path = [] let path = []
else else
let path = split(system(path_check),',') let path = split(system(path_check),',')