Skip to content

Commit bba0f45

Browse files
authored
Merge pull request #1132 from rhysd/quickpick-3d4d574
Import quickpick.vim#3d4d574d16d2a6629f32e11e9d33b0134aa1e2d9
2 parents a0023fc + ab0b353 commit bba0f45

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

autoload/lsp/internal/ui/quickpick.vim

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
" https://github.com/prabirshrestha/quickpick.vim#cf41eecb983c41e5fc45e83291b551a85fe554d3
1+
" https://github.com/prabirshrestha/quickpick.vim#3d4d574d16d2a6629f32e11e9d33b0134aa1e2d9
22
" :QuickpickEmbed path=autoload/lsp/internal/ui/quickpick.vim namespace=lsp#internal#ui#quickpick prefix=lsp-quickpick
33

44
let s:has_timer = exists('*timer_start') && exists('*timer_stop')
@@ -190,6 +190,14 @@ function! lsp#internal#ui#quickpick#busy(busy) abort
190190
endif
191191
endfunction
192192

193+
function! lsp#internal#ui#quickpick#results_winid() abort
194+
if exists('s:state')
195+
return s:state['resultswinid']
196+
else
197+
return 0
198+
endif
199+
endfunction
200+
193201
function! s:busy_tick(...) abort
194202
let s:state['busyframe'] = s:state['busyframe'] + 1
195203
if s:state['busyframe'] >= len(s:state['busyframes'])
@@ -400,7 +408,7 @@ if exists('*trim')
400408
endfunction
401409
else
402410
function! s:trim(str) abort
403-
return substitute(a:string, '^\s*\|\s*$', '', 'g')
411+
return substitute(a:str, '^\s*\|\s*$', '', 'g')
404412
endfunction
405413
endif
406414

0 commit comments

Comments
 (0)