mirror of
https://github.com/vim/vim
synced 2025-07-16 01:01:58 +00: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:
committed by
GitHub
parent
544be0d893
commit
282a94be99
@ -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),',')
|
||||
|
Reference in New Issue
Block a user