Skip to content

Commit

Permalink
fix: disable nvim_eval_statusline since the window keeps resizing
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Oct 13, 2023
1 parent c9730c0 commit 48c9928
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lua/edgy/edgebar.lua
Original file line number Diff line number Diff line change
Expand Up @@ -264,12 +264,12 @@ function M:resize()
win[long] = 1
else
local title_width = vim.fn.strdisplaywidth(win.view.title)
if vim.api.nvim_eval_statusline then
title_width = vim.api.nvim_eval_statusline(win.view.title, {
use_winbar = true,
winid = win.win,
}).width
end
-- if vim.api.nvim_eval_statusline then
-- title_width = vim.api.nvim_eval_statusline(win.view.title, {
-- use_winbar = true,
-- winid = win.win,
-- }).width
-- end
win[long] = title_width + 3
end
free = free - win[long]
Expand Down

0 comments on commit 48c9928

Please sign in to comment.