Skip to content

Commit e3a03bc

Browse files
authored
Fix KeyError exception triggered on closing a window (#2401)
1 parent 0842092 commit e3a03bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugin/core/windows.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ def listener_for_view(self, view: sublime.View) -> Optional[AbstractViewListener
545545
def discard(self, window: sublime.Window) -> None:
546546
wm = self._windows.pop(window.id(), None)
547547
if wm:
548-
wm.destroy()
548+
sublime.set_timeout_async(wm.destroy)
549549

550550

551551
class RequestTimeTracker:

0 commit comments

Comments
 (0)