How to reproduce bug:

calculate_prompt1(){
    host="my-linux"
    git_branch="a very very very very very very very very very very
very very very very long prompt"
    prompt="@$host \\w : \[$(tput bold)$(tput setab 1)$(tput setaf
7)\]${git_branch}\[$(tput sgr0)\]\$ "
    export PS1="$prompt"}

PROMPT_COMMAND="calculate_prompt1;"

If you have to, resize your terminal so the prompt goes on two lines.

Then keep pressing enter until the bottom of the terminal.

keep pressing enter past the bottom of the terminal and you will see
that the background color doesn't

clear after the end of prompt

Reply via email to