Skip to content
Snippets Groups Projects
Unverified Commit ace92ba2 authored by lacygoill's avatar lacygoill Committed by GitHub
Browse files

[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: default avatarlacygoill <lacygoill@lacygoill.me>
Co-authored-by: default avatarJunegunn Choi <junegunn.c@gmail.com>
parent d631c76e
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment