Skip to content

Commit 3129808

Browse files
author
Mike Foley
committed
De-dupe autocomplete results
Duplicates appear when overriding a default command via a projection
1 parent fc156c6 commit 3129808

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
@@ -2537,7 +2537,7 @@ function! s:completion_filter(results, A, ...) abort
25372537
if exists('*projectionist#completion_filter')
25382538
return projectionist#completion_filter(a:results, a:A, a:0 ? a:1 : '/')
25392539
endif
2540-
let results = sort(type(a:results) == type("") ? split(a:results,"\n") : copy(a:results))
2540+
let results = uniq(sort(type(a:results) == type("") ? split(a:results,"\n") : copy(a:results)))
25412541
call filter(results,'v:val !~# "\\~$"')
25422542
if a:A =~# '\*'
25432543
let regex = s:gsub(a:A,'\*','.*')

0 commit comments

Comments
 (0)