1
- " https://github.com/prabirshrestha/quickpick.vim#601f826b829dcac19a613f6724e6fb9f110d7c07
1
+ " https://github.com/prabirshrestha/quickpick.vim#3c3d5850867a7308391a1143575f62677dc2ce3f
2
2
" :QuickpickEmbed path=autoload/lsp/internal/ui/quickpick.vim namespace=lsp#internal#ui#quickpick prefix=lsp-quickpick
3
3
4
4
let s: has_timer = exists (' *timer_start' ) && exists (' *timer_stop' )
@@ -211,7 +211,9 @@ function! s:update_items() abort
211
211
else
212
212
if empty (s: state [' key' ]) " item is string
213
213
if s: has_matchfuzzypos
214
- let [l: fitems , l: highlights ] = matchfuzzypos (s: state [' items' ], s: state [' input' ])
214
+ let l: matchfuzzyresult = matchfuzzypos (s: state [' items' ], s: state [' input' ])
215
+ let l: fitems = l: matchfuzzyresult [0 ]
216
+ let l: highlights = l: matchfuzzyresult [1 ]
215
217
let s: state [' fitems' ] = l: fitems
216
218
let s: state [' highlights' ] = l: highlights
217
219
elseif s: has_matchfuzzy
@@ -223,7 +225,9 @@ function! s:update_items() abort
223
225
if s: has_matchfuzzypos
224
226
" vim requires matchfuzzypos to have highlights.
225
227
" matchfuzzy only patch doesn't support dict search
226
- let [l: fitems , l: highlights ] = matchfuzzypos (s: state [' items' ], s: state [' input' ], { ' key' : s: state [' key' ] })
228
+ let l: matchfuzzyresult = matchfuzzypos (s: state [' items' ], s: state [' input' ], { ' key' : s: state [' key' ] })
229
+ let l: fitems = l: matchfuzzyresult [0 ]
230
+ let l: highlights = l: matchfuzzyresult [1 ]
227
231
let s: state [' fitems' ] = l: fitems
228
232
let s: state [' highlights' ] = l: highlights
229
233
else
0 commit comments