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:
parent
544be0d893
commit
282a94be99
@ -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),',')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user