runtime: Fix problem of checking wrong cwd for ruby ftplugin (#13026)
Commit:
https://github.com/vim/vim/commit/282a94be990fc1ee5be46548bf7241b583d48972
Author: Anton Sharonov (ant0sha) <[email protected]>
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 <[email protected]>
Signed-off-by: Christian Brabandt <[email protected]>
diff --git a/runtime/ftplugin/ruby.vim b/runtime/ftplugin/ruby.vim
index 1262099d8..daffe1e0d 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),',')
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/E1qdGCz-00FSLG-Ex%40256bit.org.