Skip to content

Commit

Permalink
don't initialize TextChange listeners for widgets (#2213)
Browse files Browse the repository at this point in the history
  • Loading branch information
rchl authored Mar 4, 2023
1 parent d102475 commit 2eefce0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugin/documents.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@

def is_regular_view(v: sublime.View) -> bool:
# Not from the quick panel (CTRL+P), and not a special view like a console, output panel or find-in-files panels.
return not v.sheet().is_transient() and v.element() is None
is_widget = v.settings().get('is_widget')
return not v.sheet().is_transient() and v.element() is None and not is_widget


def previous_non_whitespace_char(view: sublime.View, pt: int) -> str:
Expand Down

0 comments on commit 2eefce0

Please sign in to comment.