File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 1- " https://github.com/prabirshrestha/quickpick.vim#3d4d574d16d2a6629f32e11e9d33b0134aa1e2d9
1+ " https://github.com/prabirshrestha/quickpick.vim#d9d18841b03b633eca411f69dc7997cca4203194
22" :QuickpickEmbed path=autoload/lsp/internal/ui/quickpick.vim namespace=lsp#internal#ui#quickpick prefix=lsp-quickpick
33
44let s: has_timer = exists (' *timer_start' ) && exists (' *timer_stop' )
@@ -24,16 +24,18 @@ function! lsp#internal#ui#quickpick#open(opt) abort
2424 \ ' maxheight' : 10 ,
2525 \ ' debounce' : 250 ,
2626 \ ' filter' : 1 ,
27+ \ ' winrestcmd' : ' ' ,
2728 \ }, a: opt )
2829
2930 let s: inputecharpre = 0
3031 let s: state [' busyframe' ] = 0
3132
3233 let s: state [' bufnr' ] = bufnr (' %' )
3334 let s: state [' winid' ] = win_getid ()
35+ let s: state [' winrestcmd' ] = winrestcmd ()
3436
3537 " create result buffer
36- exe printf (' keepalt botright 1new %s' , s: state [' filetype' ])
38+ exe printf (' keepalt botright 3new %s' , s: state [' filetype' ])
3739 let s: state [' resultsbufnr' ] = bufnr (' %' )
3840 let s: state [' resultswinid' ] = win_getid ()
3941 if s: has_proptype
@@ -159,6 +161,7 @@ function! lsp#internal#ui#quickpick#close() abort
159161
160162 exe ' silent! bunload! ' . s: state [' promptbufnr' ]
161163 exe ' silent! bunload! ' . s: state [' resultsbufnr' ]
164+ exe ' silent! ' . s: state [' winrestcmd' ]
162165
163166 let s: inputecharpre = 0
164167
You can’t perform that action at this time.
0 commit comments