Hack: Don't drop undo-history when the prompt contains text

Signed-off-by: Moritz Ulrich <moritz@tarn-vedra.de>