We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c0c19a commit 9c92dafCopy full SHA for 9c92daf
plugin/rails.vim
@@ -38,7 +38,8 @@ function! RailsDetect(...) abort
38
return
39
endif
40
if !s:IsAbs(path)
41
- let path = getcwd() . (exists('+shellslash') && !&shellslash ? '\' : '/') . path
+ let s = exists('+shellslash') && !&shellslash ? '\' : '/'
42
+ let path = substitute(getcwd(), '\' . s . '\=$', s, '') . path
43
44
let path = substitute(path, '[' . s:slash . '/]$', '', '')
45
try
0 commit comments