Fix cursor move when restoring window-start