mirror of
https://github.com/neovim/neovim.git
synced 2025-09-13 23:08:16 +00:00
vim-patch:8.0.1123: cannot define a toolbar for a window
Problem: Cannot define a toolbar for a window.
Solution: Add a window-local toolbar.
1b9645de3c
"WinBar" code in "screen.c" was not ported.
Fix https://github.com/neovim/neovim/issues/11513#issuecomment-562012827
This commit is contained in:
@@ -4782,6 +4782,7 @@ win_free (
|
||||
|
||||
qf_free_all(wp);
|
||||
|
||||
remove_winbar(wp);
|
||||
|
||||
xfree(wp->w_p_cc_cols);
|
||||
|
||||
@@ -5708,11 +5709,10 @@ void set_fraction(win_T *wp)
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Set the height of a window.
|
||||
* This takes care of the things inside the window, not what happens to the
|
||||
* window position, the frame or to other windows.
|
||||
*/
|
||||
// Set the height of a window.
|
||||
// "height" excludes any window toolbar.
|
||||
// This takes care of the things inside the window, not what happens to the
|
||||
// window position, the frame or to other windows.
|
||||
void win_new_height(win_T *wp, int height)
|
||||
{
|
||||
// Don't want a negative height. Happens when splitting a tiny window.
|
||||
|
Reference in New Issue
Block a user