Skip to content

Commit 5c3213a

Browse files
committed
Work around weird --remote skip of finally
Closes #152.
1 parent 5943faa commit 5c3213a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

ftplugin/ruby.vim

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,9 @@ function! s:query_path(root)
8383
let cwd = getcwd()
8484
try
8585
exe cd fnameescape(a:root)
86-
return split(system(path_check),',')
86+
let path = split(system(path_check),',')
87+
exe cd fnameescape(cwd)
88+
return path
8789
finally
8890
exe cd fnameescape(cwd)
8991
endtry

0 commit comments

Comments
 (0)