Skip to content

Commit

Permalink
Only rescan c/c++/objc/objc++ files
Browse files Browse the repository at this point in the history
  • Loading branch information
rumly111 committed Nov 5, 2021
1 parent 6d54206 commit 5a09529
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions simpleifdef.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ def __init__(self, *args, **kw):
self._regions = []

def _rescan(self, view):
if not view.match_selector(0, "source.c | source.c++ | source.objc | source.objc++"):
return

self._groups.clear()
self._regions.clear()
stack = []
Expand Down

0 comments on commit 5a09529

Please sign in to comment.