Skip to content

Commit

Permalink
refactor: tidy codes
Browse files Browse the repository at this point in the history
Signed-off-by: Jack Cherng <jfcherng@gmail.com>
  • Loading branch information
jfcherng committed May 25, 2024
1 parent fe1e42e commit ff275b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plugin/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def is_renderable_view(view: sublime.View) -> bool:
# activation by plugin's logics
return bool(
view.is_valid()
and view.element() is None
and not view.element()
and not is_transient_view(view)
and (syntax := view.syntax())
and sublime.score_selector(syntax.scope, get_enabled_selector()) > 0
Expand Down
2 changes: 1 addition & 1 deletion plugin/view_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def calcualte_level_regions(
regions: Sequence[sublime.Region] | None = None,
) -> defaultdict[int, list[sublime.Region]]:
"""
Calculates the begin point of indents for each level.
Calculates the region of indents for each level.
:param view: The view.
:param indent_info: The indent information.
Expand Down

0 comments on commit ff275b7

Please sign in to comment.