mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-270985 Compare with clipboard freeze
speed up working with long lines in editor GitOrigin-RevId: 2153d9f64c8e616c46ef0043962a22ca5a1cbd51
This commit is contained in:
committed by
intellij-monorepo-bot
parent
68daab8c9b
commit
1c6948bac6
@@ -582,7 +582,9 @@ abstract class LineLayout {
|
||||
BidiRun subRun = new BidiRun(level, start, end);
|
||||
List<Chunk> subChunks = new SmartList<>();
|
||||
Document document = view.getEditor().getDocument();
|
||||
for (Chunk chunk : getChunks(document.getImmutableCharSequence(), document.getLineStartOffset(line))) {
|
||||
List<Chunk> chunks = getChunks(document.getImmutableCharSequence(), document.getLineStartOffset(line));
|
||||
for (int i = (start - startOffset) / CHUNK_CHARACTERS; i < chunks.size(); i++) {
|
||||
Chunk chunk = chunks.get(i);
|
||||
if (chunk.endOffset <= start) continue;
|
||||
if (chunk.startOffset >= end) break;
|
||||
subChunks.add(chunk.subChunk(view, this, line, start, end, quickEvaluationListener));
|
||||
|
||||
Reference in New Issue
Block a user