Powerlevel9k / powerlevel9k

Powerlevel9k was a tool for building a beautiful and highly functional CLI, customized for you. P9k had a substantial impact on CLI UX, and its legacy is now continued by P10k.
https://github.com/romkatv/powerlevel10k
MIT License
13.46k stars 948 forks source link

TRANSIENT_RPROMPT is not respected #1291

Closed romkatv closed 4 years ago

romkatv commented 5 years ago

To reproduce:

docker run -e LANG=C.UTF-8 -e LC_ALL=C.UTF-8 -e TERM=$TERM -it --rm ubuntu bash -uexc '
  cd
  apt update && apt install -y zsh git
  git clone https://github.com/bhilburn/powerlevel9k.git
  echo "
    setopt TRANSIENT_RPROMPT
    POWERLEVEL9K_PROMPT_ON_NEWLINE=true
    source ~/powerlevel9k/powerlevel9k.zsh-theme" >~/.zshrc
  exec zsh'

Then press <enter> a few times.

Expected: right prompt is displayed only for the last (active) prompt. Actual: right prompt is displayed even for the past prompts.

Note: Adding POWERLEVEL9K_RPROMPT_ON_NEWLINE=true to the config fixes the issue.

dritter commented 4 years ago

Fixed on next with #1335