titoBouzout/WordHighlight — comment on commit 97cceb0db1c634ae766f205d38c2bd1efc569388
File: word_highlight.py line 73
By adzenith:

What if we put these lines inside of the "if string:"? Then we could do something like
regions_found = view.find_all(...)
if regions_found:
occurrenceMessage.append(...)
regions += regions_found

instead of having to keep track of the number of regions and seeing if it's increased.