prompt: properly save and restore the x position in the statusbar

This fixes https://savannah.gnu.org/bugs/?47720.
3 files changed