Skip to content

Commit

Permalink
fix(winbar): do not set up winbar if window height is <=1; #136
Browse files Browse the repository at this point in the history
  • Loading branch information
rebelot committed Apr 10, 2023
1 parent 64d57ac commit f4b7ff8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lua/heirline/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ local function setup_local_winbar_with_autocmd(callback)
-- return
-- end

vim.opt_local.winbar = "%{%v:lua.require'heirline'.eval_winbar()%}"
if vim.api.nvim_win_get_height(0) > 1 then
vim.opt_local.winbar = "%{%v:lua.require'heirline'.eval_winbar()%}"
end
end,
group = augrp_id,
desc = "Heirline: set window-local winbar",
Expand Down

0 comments on commit f4b7ff8

Please sign in to comment.