Skip to content

Commit 043af39

Browse files
committed
Fix :Efixtures to not find double extensions
1 parent 6dfaac1 commit 043af39

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
@@ -3056,7 +3056,7 @@ function! s:fixturesEdit(cmd,...)
30563056
let c = fnamemodify(c,':r')
30573057
let dirs = ['test/fixtures', 'spec/fixtures', 'test/factories', 'spec/factories']
30583058
let file = get(filter(copy(dirs), 's:isdirectory(rails#app().path(v:val))'), 0, dirs[0]).'/'.c.e
3059-
if file =~ '\.\w\+$' && rails#app().find_file(c.e, dirs) ==# ''
3059+
if file =~ '\.\w\+$' && rails#app().find_file(c.e, dirs, []) ==# ''
30603060
return s:edit(a:cmd,file)
30613061
else
30623062
return s:open(a:cmd, rails#app().find_file(c.e, dirs, ['.yml', '.csv', '.rb'], file))

0 commit comments

Comments
 (0)