cursor: Fix incorrect cursor position.

This commit is contained in:
dylan araps 2017-08-27 10:33:12 +10:00
parent 5c91ecfe2c
commit 5a622f8a18

View file

@ -4008,9 +4008,6 @@ dynamic_prompt() {
lines="$((lines - info_height))" lines="$((lines - info_height))"
fi fi
# Print a newline if color blocks are disabled.
[[ -z "$block_spaces" ]] && printf "\n"
# Set the prompt location. # Set the prompt location.
((lines > 0)) && printf "%b" "\033[${lines}B" ((lines > 0)) && printf "%b" "\033[${lines}B"
} }