Skip to content

Commit 24b92af

Browse files
committed
fix(core): Fixed a bug with setup() not causing the cached IDs to update
1 parent 7396456 commit 24b92af

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lua/bars/statuscolumn.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ statuscolumn.setup = function (config)
359359
end
360360

361361
for _, window in ipairs(statuscolumn.state.attached_windows) do
362-
statuscolumn.update_id(window);
362+
vim.w[window].__scID = statuscolumn.update_id(window);
363363
end
364364
end
365365

lua/bars/statusline.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@ statusline.setup = function (config)
600600
end
601601

602602
for window, _ in pairs(statusline.state.attached_windows) do
603-
statusline.update_id(window);
603+
vim.w[window].__slID = statusline.update_id(window);
604604
end
605605
end
606606

lua/bars/winbar.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -712,7 +712,7 @@ winbar.setup = function (config)
712712
end
713713

714714
for window, _ in pairs(winbar.state.attached_windows) do
715-
winbar.update_id(window);
715+
vim.w[window].__swID = winbar.update_id(window);
716716
end
717717
end
718718

0 commit comments

Comments
 (0)