IDEA-153086 Soft Wraps wrap too early in Distraction Free mode

This commit is contained in:
Dmitry Batrak
2016-03-23 12:59:00 +03:00
parent 498057e8b2
commit e867acfb5b
@@ -1417,7 +1417,7 @@ public class SoftWrapApplianceManager implements Dumpable {
* @return <code>true</code> if given <code>'x'</code> coordinate exceeds visual area's right edge; <code>false</code> otherwise
*/
public boolean exceedsVisualEdge(int x) {
return x >= myVisibleAreaWidth;
return x > myVisibleAreaWidth || x == myVisibleAreaWidth && !myEditor.myUseNewRendering;
}
}