void () { // We had a problem that soft wraps cache entries that lay after the changed region were considered to be affected by the change. // This test checks that situation. String text = """ fold line1 fold line2 fold line3 fold line4 normal line1"""; init(20, text); int afterFoldOffset = text.indexOf("normal line1"); addCollapsedFoldRegion(text.indexOf("fold line1") + 2, afterFoldOffset - 1, "..."); VisualPosition beforeModification = getEditor().offsetToVisualPosition(afterFoldOffset); getEditor().getCaretModel().moveToOffset(0); type('a'); assertEquals(beforeModification, getEditor().offsetToVisualPosition(afterFoldOffset + 1)); }