Skip to content

Commit 680ac8f

Browse files
committed
Fix finding of custom view extensions in app/views projections
1 parent e2c72b5 commit 680ac8f

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
@@ -4919,7 +4919,7 @@ function! rails#ruby_setup() abort
49194919
endif
49204920
call extend(exts,
49214921
\ filter(map(keys(rails#app().projections()),
4922-
\ 'matchstr(v:val, "^\\Capp/views/\\*\\.\\zs(\\w\\+$")'), 'len(v:val)'))
4922+
\ 'matchstr(v:val, "^\\Capp/views/\\*\\.\\zs\\w\\+$")'), 'len(v:val)'))
49234923
else
49244924
let full = matchstr(expand('%:p'), '.*[\/]\%(app\|config\|lib\|test\|spec\)\ze[\/]')
49254925
let name = fnamemodify(full, ':t')

0 commit comments

Comments
 (0)