prompt: don't crash when the terminal is less than four columns wide

This fixes https://savannah.gnu.org/bugs/?48792.
1 file changed