With the default settings, the "undo" command will move the cursor to the last edit location in the current file (not another file).