Don't move cursor if already in prompt.

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