mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Don't highlight when selection contains line break (IJPL-45173)
for "Highlight occurrences of selected text" GitOrigin-RevId: 8a79a4b0212a711739c6532dd70afd917d20aa9b
This commit is contained in:
committed by
intellij-monorepo-bot
parent
19a2cbc86c
commit
7c5866059d
+1
-1
@@ -190,7 +190,7 @@ final class BackgroundHighlighter {
|
||||
int end = caret.getSelectionEnd();
|
||||
CharSequence sequence = document.getCharsSequence();
|
||||
String toFind = sequence.subSequence(start, end).toString();
|
||||
if (toFind.trim().isEmpty()) {
|
||||
if (toFind.trim().isEmpty() || toFind.contains("\n")) {
|
||||
return false;
|
||||
}
|
||||
String previous = editor.getUserData(HIGHLIGHTED_TEXT);
|
||||
|
||||
Reference in New Issue
Block a user