Skip to content

Commit f9bf7bb

Browse files
committed
Special case view alternate
Closes tpope#428.
1 parent 9122099 commit f9bf7bb

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
@@ -3306,7 +3306,7 @@ function! s:readable_alternate_candidates(...) dict abort
33063306
endif
33073307
endif
33083308
let projected = self.projected('alternate', placeholders)
3309-
if !empty(projected)
3309+
if !empty(projected) && f !~# '\<spec/views/.*_spec\.rb$'
33103310
return projected
33113311
endif
33123312
if f =~# '^db/migrate/'

0 commit comments

Comments
 (0)