Skip to content

Commit

Permalink
Fix crash on active view being a HtmlSheet (#155)
Browse files Browse the repository at this point in the history
  • Loading branch information
rchl authored Jan 23, 2023
1 parent 8c898b8 commit c09a3f0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ A [Sublime Text](http://www.sublimetext.com) plugin that allows you to…
- [Trim On Save](#trim-on-save)
- [Save After Trim](#save-after-trim)
- [Live Matching vs On-demand Matching](#live-matching-vs-on-demand-matching)
- [Ignore Syntax](#ignore-syntax)
- [Ignore Scope](#ignore-scope)
- [For power-users only!](#for-power-users-only)
- [Disabled for large files](#disabled-for-large-files)
- [The matching pattern](#the-matching-pattern)
Expand Down
5 changes: 4 additions & 1 deletion trailing_spaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,10 @@ def is_view_visible(self, view):
# see if this view is visible in its group
group = window.get_view_index(view)[0]
if group != -1:
return view.id() == window.active_view_in_group(group).id()
active_view_in_group = window.active_view_in_group(group)
# won't be present if a html sheet is active
if active_view_in_group:
return view.id() == active_view_in_group.id()

# check if this view is the active panel
active_panel = window.active_panel() or ""
Expand Down

0 comments on commit c09a3f0

Please sign in to comment.