From: Anton Sharonov (ant0sha) <109120102+ant0sha@users.noreply.github.com> Date: Mon, 4 Sep 2023 20:21:00 +0000 (+0200) Subject: runtime: Fix problem of checking wrong cwd for ruby ftplugin (#13026) X-Git-Tag: v9.0.1866~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=282a94be990fc1ee5be46548bf7241b583d48972;p=thirdparty%2Fvim.git runtime: Fix problem of checking wrong cwd for ruby ftplugin (#13026) Co-authored-by: Anton Sharonov Signed-off-by: Christian Brabandt --- 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),',')