editor: corrected condition for evaluating extensions width

This commit is contained in:
nik
2017-12-01 16:24:07 +03:00
parent ffb1886ad6
commit 07d333fe8f
@@ -274,7 +274,7 @@ class EditorSizeManager extends InlayModel.SimpleAdapter implements PrioritizedD
if (myMaxLineWithExtensionWidth > 0) {
AtomicBoolean hasExtensions = new AtomicBoolean();
myEditor.processLineExtensions(myWidestLineWithExtension, (info) -> hasExtensions.set(true));
if (hasExtensions.get()) {
if (!hasExtensions.get()) {
myMaxLineWithExtensionWidth = 0;
}
}