powerlevel9k icon indicating copy to clipboard operation
powerlevel9k copied to clipboard

Invisible segment separator

Open romkatv opened this issue 6 years ago • 2 comments

This is on master.

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 "
    POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(root_indicator time)
    POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=()
    typeset POWERLEVEL9K_{ROOT_INDICATOR,TIME}_BACKGROUND=black
    typeset POWERLEVEL9K_{ROOT_INDICATOR,TIME}_FOREGROUND=empty
    source ~/powerlevel9k/powerlevel9k.zsh-theme" >~/.zshrc
  exec zsh'

Actual:

actual

Expected:

expected

romkatv avatar Jul 11 '19 19:07 romkatv

+1. This is surprisingly important to my current config.

I can verify that it's not just a font issue, for example. I replicated this behavior with standard unicode characters ("!?!?") and the separator is still invisible. It may be a coloring issue, since using multiple characters in the separator does widen the left prompt.

Actual: image

Expected: image

To reproduce "actual", simply add the line POWERLEVEL9K_LEFT_SUBSEGMENT_SEPARATOR=!?!? to romkatv's echo statement.

To reproduce "expected", run the above but using powerlevel10k instead.

allibell avatar Oct 09 '19 04:10 allibell

It may be a coloring issue

It is. This can be verified by copy-pasting the separator from the terminal.

To reproduce "expected", run the above but using powerlevel10k instead.

Indeed, this is how I produce "expected" images in all my bug reports.

romkatv avatar Oct 09 '19 08:10 romkatv