/** Undoes the text. */ final void undo() { if (undo == null) return; text = new BaseXTextTokens(undo.prev()); rend.setText(text); text.pos(undo.cursor()); text.setCaret(); }