vim-patch:282a94be990f

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

282a94be99

Co-authored-by: Anton Sharonov (ant0sha) <109120102+ant0sha@users.noreply.github.com>
Co-authored-by: Anton Sharonov <anton.sharonov@gmail.com>
This commit is contained in:
Christian Clason 2023-09-05 08:20:56 +02:00
parent 109ff0a73f
commit 6abc608445

View File

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