diff options
author | lacygoill <lacygoill@users.noreply.github.com> | 2020-05-17 16:28:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-17 23:28:23 +0900 |
commit | ace92ba281669df7f1d5c434789c454e98dde45b (patch) | |
tree | d3e0aee4d073823103bcf56c188decfbb4e4dd61 /plugin | |
parent | d631c76e8d2dd18876a09d2c0919ece1a42a8721 (diff) |
[vim] Don't set wfw, wfh, bh options when opening popup (#2042)
* No need to restore &wfw and &wfh when using popup window
Co-authored-by: lacygoill <lacygoill@lacygoill.me>
Co-authored-by: Junegunn Choi <junegunn.c@gmail.com>
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/fzf.vim | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/plugin/fzf.vim b/plugin/fzf.vim index c2889487..06ef99ad 100644 --- a/plugin/fzf.vim +++ b/plugin/fzf.vim @@ -678,9 +678,11 @@ function! s:split(dict) endif endfor endif - return [ppos, { '&l:wfw': &l:wfw, '&l:wfh': &l:wfh }, is_popup] + return [ppos, is_popup ? {} : { '&l:wfw': &l:wfw, '&l:wfh': &l:wfh }, is_popup] finally - setlocal winfixwidth winfixheight + if !is_popup + setlocal winfixwidth winfixheight + endif endtry endfunction @@ -751,9 +753,6 @@ function! s:execute_term(dict, command, temps) abort if has('nvim') call termopen(command, fzf) else - if !len(&bufhidden) - setlocal bufhidden=hide - endif let term_opts = {'exit_cb': function(fzf.on_exit)} if is_popup let term_opts.hidden = 1 |