bobbylight / RSyntaxTextArea

A syntax highlighting, code folding text editor for Java Swing applications.
BSD 3-Clause "New" or "Revised" License
1.12k stars 259 forks source link

Highlight leftover after deleting text that was previously searched and marked #567

Open AyuExecutes opened 3 months ago

AyuExecutes commented 3 months ago

Description When searching for text, and then deleting that text, there is a leftover highlight line as shown in this screenshot.

In line 3, had the word "are" which i searched for and was highlighted, then I removed the word, and you can see the remaining highlight on the left.

Note: this is not the cursor, the cursor is elsewhere.

Possibly related to https://github.com/bobbylight/RSyntaxTextArea/issues/547

Steps to Reproduce

  1. Adds some text
  2. Search for text using SearchEngine.find
  3. Delete any found text by backspacing over it
  4. The highlight will remain on the left as a line

Expected behavior The highlight should disappear completely

Actual behavior The highlight remains as a single line

Screenshots image

another example: image

Java version Java 19