Skip to content

Commit a8da6e1

Browse files
committed
Allow creating assets with navigation commands
1 parent e267f60 commit a8da6e1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

autoload/rails.vim

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3070,7 +3070,11 @@ function! s:AssetEdit(cmd, name, dir, suffix, fallbacks) abort
30703070
break
30713071
endif
30723072
endfor
3073-
return s:open(a:cmd, file . matchstr(a:name, '[!#:]*'))
3073+
if name =~# '\.' || a:name =~# '!'
3074+
return s:edit(a:cmd, file . matchstr(a:name, '[!#:]*'))
3075+
else
3076+
return s:open(a:cmd, file . matchstr(a:name, '[!#:]*'))
3077+
endif
30743078
endfunction
30753079

30763080
function! s:javascriptEdit(cmd,...) abort

0 commit comments

Comments
 (0)