File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -582,6 +582,16 @@ statusline.detach = function (window)
582
582
end
583
583
584
584
statusline .state .attached_windows [window ] = false ;
585
+
586
+ if _sl == " " or _sl == nil then
587
+ --- BUG, `set statusline&` resets the statusline
588
+ --- globally.
589
+ ---
590
+ --- So, we reattach to all the other windows.
591
+ for _ , win in ipairs (vim .api .nvim_list_wins ()) do
592
+ statusline .attach (win );
593
+ end
594
+ end
585
595
end );
586
596
587
597
--- | fE
621
631
622
632
--- Attaches the statusline module to the windows
623
633
--- of a buffer.
634
+ --- @param window integer
635
+ --- @param force ? boolean
624
636
statusline .attach = function (window , force )
625
637
--- | fS
626
638
@@ -683,7 +695,7 @@ statusline.enable = function (window)
683
695
return ;
684
696
end
685
697
686
- statusline .attach (window );
698
+ statusline .attach (window , true );
687
699
end
688
700
689
701
--- Enables *all* attached windows.
You can’t perform that action at this time.
0 commit comments