diff --git a/CHANGELOG.md b/CHANGELOG.md index 6ab73874..a7f299d6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ CHANGELOG ------ - Fixed `--info inline-right:PREFIX` leaving part of the previous output when the info gets shorter (#4953) - Fixed a one-line picker overwriting the line above it, e.g. `--height=~50%` with inline info and empty input (#4958) (@nhooyr) +- [vim] Fixed the popup window being cropped on Windows when the first redraw after starting the terminal is delayed (#4957) (@FanXiangTM) 0.75.0 ------ diff --git a/plugin/fzf.vim b/plugin/fzf.vim index 7bb7c5a7..8ee3a5ff 100644 --- a/plugin/fzf.vim +++ b/plugin/fzf.vim @@ -1124,6 +1124,10 @@ function! s:execute_term(dict, command, temps) abort endif if is_popup let term_opts.hidden = 1 + " Avoid resizing the terminal after fzf starts (#4957) + let bounds = s:popup_bounds() + let term_opts.term_rows = bounds.height + let term_opts.term_cols = bounds.width else let term_opts.curwin = 1 endif