This is useful so that undo knows where to put the cursor.
Led is a simple console-based text editor, inspired loosely by Zed.