File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -205,8 +205,6 @@ statuscolumn.render = function ()
205
205
return " " ;
206
206
elseif statuscolumn .state .attached_windows [window ] ~= true then
207
207
--- We aren't attached to this window.
208
- --- Detach and exit.
209
- statuscolumn .detach (window );
210
208
return " " ;
211
209
end
212
210
@@ -272,6 +270,10 @@ statuscolumn.detach = function (window)
272
270
--- | fS
273
271
274
272
vim .schedule (function ()
273
+ if not window or vim .api .nvim_win_is_valid (window ) == false then
274
+ return ;
275
+ end
276
+
275
277
vim .w [window ].__scID = nil ;
276
278
277
279
vim .api .nvim_set_option_value (
339
341
statuscolumn .attach = function (window )
340
342
--- | fS
341
343
342
- if statuscolumn .state .enable == false then
344
+ if not window or vim .api .nvim_win_is_valid (window ) == false then
345
+ return ;
346
+ elseif statuscolumn .state .enable == false then
343
347
return ;
344
348
elseif statuscolumn .can_attach (window ) == false then
345
349
return ;
You can’t perform that action at this time.
0 commit comments