void () { // Inspired by IDEA-59439 String text = """ This is a test document line1 line2 line3 line4 line5 line6<caret>"""; init(100, text); type("\nq"); assertEquals(new VisualPosition(7, 1), getEditor().offsetToVisualPosition(getEditor().getDocument().getTextLength())); }