# HG changeset patch # User Christian Brabandt # Date 1693859405 -7200 # Node ID 01c803103fa968de3fb5989d644d00d942202120 # Parent af4d720e413ba3e33adb2f1a7efa0f7fae22db6b runtime: Fix problem of checking wrong cwd for ruby ftplugin (#13026) Commit: https://github.com/vim/vim/commit/282a94be990fc1ee5be46548bf7241b583d48972 Author: Anton Sharonov (ant0sha) <109120102+ant0sha@users.noreply.github.com> Date: Mon Sep 4 22:21:00 2023 +0200 runtime: Fix problem of checking wrong cwd for ruby ftplugin (https://github.com/vim/vim/issues/13026) Co-authored-by: Anton Sharonov Signed-off-by: Christian Brabandt diff --git a/runtime/ftplugin/ruby.vim b/runtime/ftplugin/ruby.vim --- 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),',')