mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-53596 Soft wrap for editors
Corrected visible editor content size calculation algorithm
This commit is contained in:
@@ -4692,7 +4692,7 @@ public final class EditorImpl extends UserDataHolderBase implements EditorEx, Hi
|
||||
|
||||
synchronized (lock) {
|
||||
if (!myIsDirty) return;
|
||||
int lineCount = myLineWidths.size();
|
||||
int lineCount = Math.min(myLineWidths.size(), myDocument.getLineCount());
|
||||
|
||||
if (myMaxWidth != -1 && myDocument.isInBulkUpdate()) {
|
||||
mySize = new Dimension(myMaxWidth, getLineHeight() * lineCount);
|
||||
|
||||
Reference in New Issue
Block a user