mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-56409 Soft wrap, editing: AIOOBE at EditorImpl$EditorSizeContainer.changedUpdate() on removing a code that doesn't fit editor's width and height
Added additional check for the situation when complete document is emptied
This commit is contained in:
@@ -4649,7 +4649,7 @@ public final class EditorImpl extends UserDataHolderBase implements EditorEx, Hi
|
||||
|
||||
public synchronized void update(int startLine, int newEndLine, int oldEndLine) {
|
||||
final int lineWidthSize = myLineWidths.size();
|
||||
if (lineWidthSize == 0) {
|
||||
if (lineWidthSize == 0 || myDocument.getTextLength() <= 0) {
|
||||
reset();
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user