From f08f4fd87dffbe34f8b11de01829c6d63d24a15e Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Sat, 31 Oct 2020 22:21:06 +0900 Subject: [PATCH] [vim] Remove dead code --- plugin/fzf.vim | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/plugin/fzf.vim b/plugin/fzf.vim index 57fb009f..9f78e634 100644 --- a/plugin/fzf.vim +++ b/plugin/fzf.vim @@ -908,23 +908,14 @@ if has('nvim') endfunction else function! s:create_popup(hl, opts) abort - let is_frame = has_key(a:opts, 'border') let s:popup_create = {buf -> popup_create(buf, #{ \ line: a:opts.row, \ col: a:opts.col, \ minwidth: a:opts.width, \ minheight: a:opts.height, - \ zindex: 50 - is_frame, + \ zindex: 1000, \ })} - if is_frame - let id = s:popup_create('') - call setwinvar(id, '&wincolor', a:hl) - call setbufline(winbufnr(id), 1, a:opts.border) - execute 'autocmd BufWipeout * ++once call popup_close('..id..')' - return winbufnr(id) - else - autocmd TerminalOpen * ++once call s:popup_create(str2nr(expand(''))) - endif + autocmd TerminalOpen * ++once call s:popup_create(str2nr(expand(''))) endfunction endif