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 946 forks source link

Why does the prompt on the right overflow to the next line? #1386

Open fandean opened 4 years ago

fandean commented 4 years ago

I'm just moving vcs from the left to the right.

Why does the prompt on the right overflow to the next line?

Environment Information

POWERLEVEL9K_PROMPT_ADD_NEWLINE=true

# LEFT_PROMPT
# ==============================
#POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(os_icon time dir dir_writable vcs)
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=( os_icon time dir dir_writable)
POWERLEVEL9K_PROMPT_ON_NEWLINE=true
POWERLEVEL9K_MULTILINE_FIRST_PROMPT_PREFIX=""
POWERLEVEL9K_MULTILINE_LAST_PROMPT_PREFIX=" $ "
POWERLEVEL9K_WHITESPACE_BETWEEN_LEFT_SEGMENTS=' '
POWERLEVEL9K_LEFT_SUBSEGMENT_SEPARATOR=' '

# RIGHT_PROMP
# ================================
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(vcs)
#POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status)

POWERLEVEL9K_MODE='nerdfont-complete'
ZSH_THEME='powerlevel9k/powerlevel9k'
kuretru commented 4 years ago

Same issue here.

dgdosen commented 4 years ago

I've got this issue too - and it's incredibly irritating

I get this issue when I use tmux and powerlevel9k. Sometimes, the bottom line of my neovim window pushes up, along with every other line in the vim window, and redraws that bottomline, so now there are two of them - and I need to quit to 'reset' everything

There seems to be an issue with powerlevel9k, coc and tmux all making changes to that part of the screen...

Screen Shot 2020-01-29 at 1 22 45 PM

Any ideas?

Environment Information macos 10.15.2 oh-my-zsh iterm2 v3.3.7

romkatv commented 4 years ago

@dgdosen Do you believe the problem you are experiencing is related to the issue you are commenting on? If so, why?

romkatv commented 4 years ago

Just to clarify, the original issue is simply about a bug in Cmder. Cmder is unable to properly display characters that are classified as "wide" in the Unicode standard. It has nothing to do with tmux, zsh, powerlevel10k or vim. Just a Cmder bug.

What you report seems something else, right?

dgdosen commented 4 years ago

this is more general -but looks similar - I'm just getting the upward shifts in tmux/powerlevel9k. If I'm editing a line in vim, my pointer stays in the same place, but the underlying text shifts up as well...

romkatv commented 4 years ago

Pretty sure it's a different issue.

dgdosen commented 4 years ago

I agree - I think my issue was caused by using common dotfiiles across machines, and having powerlevel9k installed differently in each case (on macs)...

-- so ignore these :)

jckling commented 4 years ago

Same problem :(