mirror of
https://github.com/neovim/neovim.git
synced 2025-10-05 01:16:31 +00:00
fix(floatwin): don't always use winheight
This commit is contained in:
@@ -4608,11 +4608,12 @@ static void win_enter_ext(win_T *wp, bool undo_sync, int curwin_invalid,
|
||||
redraw_all_later(NOT_VALID);
|
||||
}
|
||||
|
||||
/* set window height to desired minimal value */
|
||||
if (curwin->w_height < p_wh && !curwin->w_p_wfh)
|
||||
// set window height to desired minimal value
|
||||
if (curwin->w_height < p_wh && !curwin->w_p_wfh && !curwin->w_floating) {
|
||||
win_setheight((int)p_wh);
|
||||
else if (curwin->w_height == 0)
|
||||
} else if (curwin->w_height == 0) {
|
||||
win_setheight(1);
|
||||
}
|
||||
|
||||
// set window width to desired minimal value
|
||||
if (curwin->w_width < p_wiw && !curwin->w_p_wfw && !wp->w_floating) {
|
||||
|
Reference in New Issue
Block a user