Skip to content
Myr

[vim] Don't set wfw, wfh, bh options when opening popup (#2042)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

* No need to restore &wfw and &wfh when using popup window

authored by lacygoill · committed by GitHub · parent d631c76 · Browse files · 1 file+4 added−5 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Trailers

  • Co-authored-by: lacygoill <lacygoill@lacygoill.me>
  • Co-authored-by: Junegunn Choi <junegunn.c@gmail.com>

Diff stats

1 file+4 added−5 removed

  • other:+4 added−5 removed

1 file+4 added−5 removed

modified:plugin/fzf.vim+4 added-5 removed
676 unmodified lines
677 return [ppos, {}, is_popup]678 endif679 endfor680 endif681 return [ppos, { '&l:wfw': &l:wfw, '&l:wfh': &l:wfh }, is_popup]681 return [ppos, is_popup ? {} : { '&l:wfw': &l:wfw, '&l:wfh': &l:wfh }, is_popup]682 finally683 if !is_popup683 setlocal winfixwidth winfixheight684 setlocal winfixwidth winfixheight685 endif686 endtry687endfunction688689function! s:execute_term(dict, command, temps) abort
62 unmodified lines
752 let command .= s:term_marker753 if has('nvim')754 call termopen(command, fzf)755 else754 if !len(&bufhidden)755 setlocal bufhidden=hide756 endif756 let term_opts = {'exit_cb': function(fzf.on_exit)}757 if is_popup758 let term_opts.hidden = 1759 else
190 unmodified lines