You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Launch vim with vim --clean -Nu <(curl https://gist.githubusercontent.com/junegunn/6936bf79fedd3a079aeb1dd2f3c81ef5/raw)
Wait for vim-plug to install everything
Close the split created by vim-plug so that the window contains one empty split
Split the window horizontally, such that there are two splits, one above the other
Switch to the BOTTOM split
In the BOTTOM split, run the following vim command in order to create a WinBar: :nnoremenu 1.10 WinBar.Step :Step<CR>
Switch to the TOP split
In the TOP split, run the following vim command: :FZF
Press ESC to close the FZF popup
Expected behavior
The sizes of the two splits stay the same
Actual behavior
The bottom split shrinks by one line. Repeating the last two steps keeps on shrinking the split, until it becomes unusably small.
Why would anyone care?
Vimspector is another popular plugin that uses WinBar heavily. This issue is a major inconvenience for people who want to use Vimspector and fzf.vim together. They are left with three chpices: disabling WinBar support in Vimspector (let g:vimspector_enable_winbar=0); constantly re-adjusting the size of their splits; or trying to avoid using fzf when debugging. None of these are satisfactory.
The text was updated successfully, but these errors were encountered:
Splits with WinBar change size when opening and closing FZF
man fzf
)Description
If a split has a WinBar, opening and closing FZF in the split above it causes it to shrink.
Video demonstration of this bug: https://asciinema.org/a/nYiOnge1cr5FXbbAcc4pLZGF6
How to reproduce
vim --clean -Nu <(curl https://gist.githubusercontent.com/junegunn/6936bf79fedd3a079aeb1dd2f3c81ef5/raw)
:nnoremenu 1.10 WinBar.Step :Step<CR>
:FZF
ESC
to close the FZF popupExpected behavior
The sizes of the two splits stay the same
Actual behavior
The bottom split shrinks by one line. Repeating the last two steps keeps on shrinking the split, until it becomes unusably small.
Why would anyone care?
Vimspector is another popular plugin that uses WinBar heavily. This issue is a major inconvenience for people who want to use Vimspector and fzf.vim together. They are left with three chpices: disabling WinBar support in Vimspector (
let g:vimspector_enable_winbar=0
); constantly re-adjusting the size of their splits; or trying to avoid using fzf when debugging. None of these are satisfactory.The text was updated successfully, but these errors were encountered: