void () { WriteAction.run(() -> { init("line1\n" + "line2"); mouse().alt().pressAt(1, 1).dragTo(0, 0).release(); type(' '); undo(); assertEquals(new LogicalPosition(0, 0), getEditor().getCaretModel().getPrimaryCaret().getLogicalPosition()); }); }