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 d2df19b commit 3bac023Copy full SHA for 3bac023
plugin/rails.vim
@@ -27,7 +27,9 @@ function! RailsDetect(...) abort
27
endif
28
let path = a:0 ? a:1 : @%
29
if exists('*ProjectionistHas')
30
- if path !~# '^/\|^\a\+:'
+ if len(&l:buftype)
31
+ let path = fnamemodify(path, ':p')
32
+ elseif path !~# '^$\|^/\|^\a\+:\|^\\\\'
33
let path = getcwd() . '/' . path
34
35
let previous = ''
0 commit comments