mirror of
https://github.com/prabirshrestha/asyncomplete.vim.git
synced 2025-12-14 20:35:41 +01:00
use stridx for default_preprocessor
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user