Skip to content
This repository was archived by the owner on Apr 24, 2020. It is now read-only.
This repository was archived by the owner on Apr 24, 2020. It is now read-only.

ZLE_RPROMPT_INDENT is not respected #1292

Description

@romkatv

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 "
    ZLE_RPROMPT_INDENT=1
    POWERLEVEL9K_PROMPT_ON_NEWLINE=true
    POWERLEVEL9K_MULTILINE_FIRST_PROMPT_PREFIX=
    POWERLEVEL9K_MULTILINE_LAST_PROMPT_PREFIX=
    source ~/powerlevel9k/powerlevel9k.zsh-theme" >~/.zshrc
  exec zsh'

Expected:

expected

Note the empty space to the right of the prompt. This is due to ZLE_RPROMPT_INDENT=1.

Actual:

actual

Note that the left and the right edges of the prompt are symmetric. This is in fact the expected behavior for ZLE_RPROMPT_INDENT=0 but it's not correct for ZLE_RPROMPT_INDENT=1.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions