void () { initText("ab\ncd"); getEditor().getSettings().setVirtualSpace(true); mouse().clickAt(0, 4); executeAction(IdeActions.ACTION_EDITOR_DELETE_TO_WORD_END); checkResultByText("ab<caret>cd"); assertEquals(new LogicalPosition(0, 2), getEditor().getCaretModel().getLogicalPosition()); assertEquals(new VisualPosition(0, 2), getEditor().getCaretModel().getVisualPosition()); }