Skip to content

Commit

Permalink
don't fold spaces regions
Browse files Browse the repository at this point in the history
  • Loading branch information
predragnikolic committed Aug 19, 2023
1 parent 8d47a4e commit e3e0076
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ def run(self, _: sublime.Edit) -> None:


def fold(view: sublime.View, fold_r: sublime.Region, preceding_text: Optional[str] = None) -> None:
if view.substr(fold_r).isspace(): # closes: https://github.com/predragnikolic/InlineFold/issues/4
return
if view.is_folded(fold_r):
return
if preceding_text:
Expand Down

0 comments on commit e3e0076

Please sign in to comment.