From 2323d14cbd512cb3c7a00ee3e934b979ae87f2fb Mon Sep 17 00:00:00 2001 From: jwortmann Date: Thu, 14 Nov 2024 09:02:23 +0100 Subject: [PATCH] Fix possible exception on settings change (#2555) --- plugin/documents.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugin/documents.py b/plugin/documents.py index ded87dec2..8ac19579a 100644 --- a/plugin/documents.py +++ b/plugin/documents.py @@ -583,8 +583,9 @@ def on_post_text_command(self, command_name: str, args: dict[str, Any] | None) - sublime.set_timeout_async(lambda: self.do_signature_help_async(manual=True)) if not self.view.is_popup_visible(): return - if command_name in ["hide_auto_complete", "move", "commit_completion"] or 'delete' in command_name: - # hide the popup when `esc` or arrows are pressed pressed + if command_name in ("hide_auto_complete", "move", "commit_completion", "delete_word", "delete_to_mark", + "left_delete", "right_delete"): + # hide the popup when `esc` or arrows are pressed self.view.hide_popup() @requires_session