Skip to content

Commit 46ded3a

Browse files
elvarobobbylight
authored andcommitted
Clear out the marked out occurences
If a user has a marked occurence, then he selects all the text and deletes it the entire text area becomes marked. Created a small fix that clears all the marked occurences.
1 parent 52c0fe2 commit 46ded3a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/org/fife/ui/rsyntaxtextarea/MarkOccurrencesSupport.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,8 @@ public void actionPerformed(ActionEvent e) {
124124
// TODO: Do a textArea.repaint() instead of repainting each
125125
// marker as it's added if count is huge
126126
occurrencesChanged = true;
127+
} else {
128+
clear();
127129
}
128130

129131
} finally {

0 commit comments

Comments
 (0)