use stridx for default_preprocessor

This commit is contained in:
Prabir Shrestha
2019-03-27 10:56:49 -07:00
parent 623c744c13
commit 9abca3ec67

View File

@@ -394,7 +394,7 @@ function! s:default_preprocessor(options, matches) abort
let l:items = []
for [l:source_name, l:matches] in items(a:matches)
for l:item in l:matches['items']
if l:item['word'] =~ '^' . a:options['base']
if stridx(l:item['word'], a:options['base']) == 0
call add(l:items, l:item)
endif
endfor