Skip to content

Commit 2867f00

Browse files
committed
trivial bugfix - use s:uniq() not uniq()
Bug introduced in 3129808. Causes older versions of vim pre the uniq function to projectile vomit errors into your eyes when tab completing.
1 parent a85621e commit 2867f00

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 = uniq(sort(type(a:results) == type("") ? split(a:results,"\n") : copy(a:results)))
2540+
let results = s: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)