Skip to content

Commit

Permalink
fix(layout): take winbar into account for split layouts. Closes #996
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Feb 8, 2025
1 parent 39705e9 commit e4e5040
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/snacks/layout.lua
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ function M:dim_box(widget, parent)
-- honor the actual window size for split layouts
if not self.opts.fullscreen and widget.id == 1 and self.split and self.root:valid() then
return {
height = vim.api.nvim_win_get_height(self.root.win),
height = vim.api.nvim_win_get_height(self.root.win) - (vim.wo[self.root.win].winbar == "" and 0 or 1),
width = vim.api.nvim_win_get_width(self.root.win),
col = 0,
row = 0,
Expand Down

0 comments on commit e4e5040

Please sign in to comment.