Skip to content

Commit fda36ba

Browse files
author
jinzhongjia
committed
fix: Make sure winbar can be restored correctly
1 parent 174d659 commit fda36ba

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lua/LspUI/pos_abstract.lua

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -912,6 +912,11 @@ M.main_view_render = function()
912912
end
913913

914914
if lib_windows.is_valid_window(M.main_view_window()) then
915+
api.nvim_set_option_value(
916+
"winbar",
917+
winbar_map[M.main_view_window()] or "",
918+
{ win = M.main_view_window() }
919+
)
915920
-- if now windows is valid, just set buffer
916921
api.nvim_win_set_buf(M.main_view_window(), M.main_view_buffer())
917922
else

0 commit comments

Comments
 (0)