1
0
mirror of https://github.com/chylex/IntelliJ-AceJump.git synced 2025-05-12 04:34:05 +02:00

Remove only the highlighters added by AceJump when the jump session ends

This commit is contained in:
guangjinhuo 2022-04-23 15:20:23 +08:00
parent 1341c6aff4
commit 176d450855

View File

@ -148,7 +148,9 @@ internal class TextHighlighter {
}
fun reset() {
previousHighlights.keys.forEach { it.markupModel.removeAllHighlighters() }
previousHighlights.forEach { (editor, highlighters) ->
highlighters.forEach(editor.markupModel::removeHighlighter)
}
previousHighlights.clear()
previousHint?.hide()
}