Skip to content

Commit a5546e8

Browse files
committed
Fix support for absolute alternates
Closes tpope#423.
1 parent 129d619 commit a5546e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoload/rails.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3236,7 +3236,7 @@ function! s:Alternate(cmd,line1,line2,count,...) abort
32363236
call s:error("No alternate file defined")
32373237
return ''
32383238
else
3239-
return s:find(a:cmd, './' . file)
3239+
return s:find(a:cmd, rails#app().path(file))
32403240
endif
32413241
endif
32423242
endfunction

0 commit comments

Comments
 (0)