Skip to content

Commit 0720805

Browse files
committed
Accept nested list for "template"
1 parent 7b1d268 commit 0720805

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

autoload/rails.vim

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3433,6 +3433,9 @@ function! s:readable_open_command(cmd, argument, name, projections) dict abort
34333433
call s:mkdir_p(fnamemodify(file, ':h'))
34343434
if has_key(projection, 'template')
34353435
let template = s:split(projection.template)
3436+
if type(get(template, 0)) == type([])
3437+
let template = template[0]
3438+
endif
34363439
let ph = {
34373440
\ 'match': root,
34383441
\ 'file': file,

0 commit comments

Comments
 (0)