Groups
Groups
Sign in
Groups
Groups
vim_dev
Conversations
About
Send feedback
Help
Commit: runtime: Fix problem of checking wrong cwd for ruby ftplugin (#13026)
2 views
Skip to first unread message
Christian Brabandt
unread,
Sep 4, 2023, 4:30:11 PM
9/4/23
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to vim...@googlegroups.com
runtime: Fix problem of checking wrong cwd for ruby ftplugin (#13026)
Commit:
https://github.com/vim/vim/commit/282a94be990fc1ee5be46548bf7241b583d48972
Author: Anton Sharonov (ant0sha) <
10912010...@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.s...@gmail.com
>
Signed-off-by: Christian Brabandt <
c...@256bit.org
>
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),',')
Reply all
Reply to author
Forward
0 new messages