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 PM9/4/23
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