summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2020-10-31 22:21:06 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2020-10-31 22:21:06 +0900
commitf08f4fd87dffbe34f8b11de01829c6d63d24a15e (patch)
tree23814f2395a7a0c50d5a3f30fb77db1578f0f4b1
parentf8aaeef218174989c9631f5d5fc6cebaac4b8c66 (diff)
[vim] Remove dead code
-rw-r--r--plugin/fzf.vim13
1 files 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('<abuf>')))
- endif
+ autocmd TerminalOpen * ++once call s:popup_create(str2nr(expand('<abuf>')))
endfunction
endif