-
-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make sure only a single SameWordHighlighter is attached to a textbuffer.
Each TextView will register its events itself with the tagger from the textbuffer and when the textview is closed then the events are unregistered again. The previous implementation was allocating way too many samewordhighlighters. Also changed the color for the same word highlighters in the example code.
- Loading branch information
1 parent
04a50d3
commit d9f2a84
Showing
2 changed files
with
46 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters