Skip to content

Commit c09a3f0

Browse files
authored
Fix crash on active view being a HtmlSheet (#155)
1 parent 8c898b8 commit c09a3f0

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ A [Sublime Text](http://www.sublimetext.com) plugin that allows you to…
2424
- [Trim On Save](#trim-on-save)
2525
- [Save After Trim](#save-after-trim)
2626
- [Live Matching vs On-demand Matching](#live-matching-vs-on-demand-matching)
27-
- [Ignore Syntax](#ignore-syntax)
27+
- [Ignore Scope](#ignore-scope)
2828
- [For power-users only!](#for-power-users-only)
2929
- [Disabled for large files](#disabled-for-large-files)
3030
- [The matching pattern](#the-matching-pattern)

trailing_spaces.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,10 @@ def is_view_visible(self, view):
491491
# see if this view is visible in its group
492492
group = window.get_view_index(view)[0]
493493
if group != -1:
494-
return view.id() == window.active_view_in_group(group).id()
494+
active_view_in_group = window.active_view_in_group(group)
495+
# won't be present if a html sheet is active
496+
if active_view_in_group:
497+
return view.id() == active_view_in_group.id()
495498

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

0 commit comments

Comments
 (0)