From 282a94be990fc1ee5be46548bf7241b583d48972 Mon Sep 17 00:00:00 2001 From: "Anton Sharonov (ant0sha)" <109120102+ant0sha@users.noreply.github.com> Date: Mon, 4 Sep 2023 22:21:00 +0200 Subject: [PATCH] runtime: Fix problem of checking wrong cwd for ruby ftplugin (#13026) Co-authored-by: Anton Sharonov Signed-off-by: Christian Brabandt --- runtime/ftplugin/ruby.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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),',')