aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/window.c
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-03-13 22:05:05 -0400
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-04-26 19:17:16 -0400
commit64b61d49c2c3350833ca490c9fdf8540298cd01a (patch)
treeaf2b4047fd193d5fb9748a374775099b6a1f6e5d /src/nvim/window.c
parent5f41717838f4cd9d1087e452640ba554500279ab (diff)
downloadrneovim-64b61d49c2c3350833ca490c9fdf8540298cd01a.tar.gz
rneovim-64b61d49c2c3350833ca490c9fdf8540298cd01a.tar.bz2
rneovim-64b61d49c2c3350833ca490c9fdf8540298cd01a.zip
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. https://github.com/vim/vim/commit/1b9645de3c05f37b5c30e78f999351b0cf486ade "WinBar" code in "screen.c" was not ported. Fix https://github.com/neovim/neovim/issues/11513#issuecomment-562012827
Diffstat (limited to 'src/nvim/window.c')
-rw-r--r--src/nvim/window.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/nvim/window.c b/src/nvim/window.c
index a89715ff79..23836f3895 100644
--- a/src/nvim/window.c
+++ b/src/nvim/window.c
@@ -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.