Skip to content

Commit a56db85

Browse files
committed
Prioritize more specific view suffix
1 parent cb188c6 commit a56db85

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
@@ -4883,10 +4883,10 @@ function! rails#ruby_setup() abort
48834883
\ filter(map(keys(rails#app().projections()),
48844884
\ 'matchstr(v:val, "^\\Capp/views/\\*\\.\\zs(\\w\\+$")'), 'len(v:val)'))
48854885
for ext in exts
4886-
exe 'setlocal suffixesadd+=.' . ext
48874886
if len(format)
48884887
exe 'setlocal suffixesadd+=.' . format . '.' . ext
48894888
endif
4889+
exe 'setlocal suffixesadd+=.' . ext
48904890
endfor
48914891
if !rails#app().has_rails5()
48924892
let path += [rails#app().path('vendor/plugins/*/lib'), rails#app().path('vendor/rails/*/lib')]

0 commit comments

Comments
 (0)