Skip to content

Commit f187449

Browse files
committed
Initial workaround for didClose not being sent.
1 parent c92ca8a commit f187449

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugin/core/documents.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ def notify_did_open(view: sublime.View):
146146

147147
def notify_did_close(view: sublime.View):
148148
file_name = view.file_name()
149-
window = view.window()
149+
window = sublime.active_window()
150150
if window and file_name:
151151
if has_document_state(window, file_name):
152152
clear_document_state(window, file_name)

0 commit comments

Comments
 (0)