]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
runtime: Fix problem of checking wrong cwd for ruby ftplugin (#13026)
authorAnton Sharonov (ant0sha) <109120102+ant0sha@users.noreply.github.com>
Mon, 4 Sep 2023 20:21:00 +0000 (22:21 +0200)
committerGitHub <noreply@github.com>
Mon, 4 Sep 2023 20:21:00 +0000 (22:21 +0200)
Co-authored-by: Anton Sharonov <anton.sharonov@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/ftplugin/ruby.vim

index 1262099d885d7508dabaf5a60077366d4155f12a..daffe1e0dc175f20389f8fd127dcadd4f2c84384 100644 (file)
@@ -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),',')