diff options
author | Anton Sharonov (ant0sha) <109120102+ant0sha@users.noreply.github.com> | 2023-09-04 22:21:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-04 22:21:00 +0200 |
commit | 282a94be990fc1ee5be46548bf7241b583d48972 (patch) | |
tree | 8c339a6cf938887ccac2953dca43b3db6321ca23 /runtime/ftplugin | |
parent | 544be0d893e68c494aed09232d5bee4ca8b74619 (diff) |
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>
Diffstat (limited to 'runtime/ftplugin')
-rw-r--r-- | runtime/ftplugin/ruby.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/ftplugin/ruby.vim b/runtime/ftplugin/ruby.vim index 1262099d88..daffe1e0dc 100644 --- a/runtime/ftplugin/ruby.vim +++ b/runtime/ftplugin/ruby.vim @@ -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),',') |