mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
force using current document text in LayeredLexerEditorHighlighter.createIterator, even in bulk mode (IDEA-CR-10979)
This commit is contained in:
+6
-3
@@ -174,11 +174,14 @@ public class LayeredLexerEditorHighlighter extends LexerEditorHighlighter {
|
||||
// do NOT synchronize before updateLayers due to deadlock with PsiLock
|
||||
final boolean changed = updateLayers();
|
||||
|
||||
//noinspection SynchronizeOnThis
|
||||
synchronized (this) {
|
||||
if (changed) {
|
||||
CharSequence text = myText;
|
||||
myText = null;
|
||||
setText(text);
|
||||
Document document = getDocument();
|
||||
if (document != null) {
|
||||
myText = null;
|
||||
super.setText(document.getImmutableCharSequence());
|
||||
}
|
||||
}
|
||||
return new LayeredHighlighterIteratorImpl(startOffset);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user