From 6abc608445745e7e8def2aabf57c7a0c26b8a485 Mon Sep 17 00:00:00 2001 From: Christian Clason Date: Tue, 5 Sep 2023 08:20:56 +0200 Subject: [PATCH] vim-patch:282a94be990f runtime: Fix problem of checking wrong cwd for ruby ftplugin (vim/vim#13026) https://github.com/vim/vim/commit/282a94be990fc1ee5be46548bf7241b583d48972 Co-authored-by: Anton Sharonov (ant0sha) <109120102+ant0sha@users.noreply.github.com> Co-authored-by: Anton Sharonov --- 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),',')