Skip to content

Commit

Permalink
Fix invalid method call when invalidating window (#60)
Browse files Browse the repository at this point in the history
The `unregister` method was renamed to `invalidate_view`, however that
was not updated in `invalidate_window`.
  • Loading branch information
Rypac authored Jun 15, 2024
2 parents 387d431 + 1cfcce8 commit f8eb671
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def invalidate_view(self, view: View) -> None:

def invalidate_window(self, window: Window) -> None:
for view in window.views():
self.unregister(view)
self.invalidate_view(view)

def lookup(self, view: View, scope: str) -> Formatter | None:
view_id = view.id()
Expand Down

0 comments on commit f8eb671

Please sign in to comment.