Skip to content

Commit 50cd463

Browse files
committed
Fix alternate for non-glob files
1 parent b2e9a67 commit 50cd463

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
@@ -4865,7 +4865,7 @@ function! s:readable_projected_with_raw(key, ...) dict abort
48654865
let all = self.app().projections()
48664866
let mine = []
48674867
if has_key(all, f)
4868-
let mine += map(s:getlist(all[f], a:key), 's:expand_placeholders(v:val, a:0 ? a:1 : {})')
4868+
let mine += map(s:getlist(all[f], a:key), '[s:expand_placeholders(v:val, a:0 ? a:1 : {}), v:val]')
48694869
endif
48704870
for pattern in reverse(sort(filter(keys(all), 'v:val =~# "^[^*{}]*\\*[^*{}]*$"'), s:function('rails#lencmp')))
48714871
let [prefix, suffix; _] = split(pattern, '\*', 1)

0 commit comments

Comments
 (0)