mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
EA-26820 - IAE: RangeMarkerImpl.<init>
This commit is contained in:
@@ -308,6 +308,7 @@ public class LivePreview extends DocumentAdapter implements SearchResults.Search
|
||||
if (mySearchResults.getMatchesCount() >= mySearchResults.getMatchesLimit())
|
||||
return;
|
||||
for (FindResult range : mySearchResults.getOccurrences()) {
|
||||
if (range.getEndOffset() > mySearchResults.getEditor().getDocument().getTextLength()) continue;
|
||||
TextAttributes attributes = EditorColorsManager.getInstance().getGlobalScheme().getAttributes(EditorColors.TEXT_SEARCH_RESULT_ATTRIBUTES);
|
||||
if (range.getLength() == 0) {
|
||||
attributes = attributes.clone();
|
||||
|
||||
Reference in New Issue
Block a user