Skip to content

Commit 23c52d4

Browse files
committed
sort matches
1 parent fd78bd6 commit 23c52d4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

plugin/snipMate.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ fun! ShowAvailableSnips()
227227
" This is to avoid a bug with Vim when using complete(col - matchlen, matches)
228228
" (Issue#46 on the Google Code snipMate issue tracker).
229229
call setline(line('.'), substitute(line, repeat('.', matchlen).'\%'.col.'c', '', ''))
230-
call complete(col, matches)
230+
call complete(col, sort(matches))
231231
return ''
232232
endf
233233
" vim:noet:sw=4:ts=4:ft=vim

0 commit comments

Comments
 (0)