changeset 33169:01c803103fa9

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 <anton.sharonov@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Mon, 04 Sep 2023 22:30:05 +0200
parents af4d720e413b
children 345c8a959d76
files runtime/ftplugin/ruby.vim
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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),',')