Odd Text Wrapping with powerline-shell #153

Open
Serubin opened this Issue Apr 29, 2016 · 2 comments

2 participants

@Serubin

When using powerline-shell and autosuggestions the suggestion text acts odd causing some weird text wrapping and overwriting. (See the video link below)

https://asciinema.org/a/16v4abb56t9gq9nu7jwow4g5o

This is using zsh version 5.2 and using the following code to implement the the prompt.

function powerline_precmd() {
    PS1="$(~/powerline-shell.py $? --shell zsh 2> /dev/null)"
}

function install_powerline_precmd() {
  for s in "${precmd_functions[@]}"; do
    if [ "$s" = "powerline_precmd" ]; then
      return
    fi
  done
  precmd_functions+=(powerline_precmd)
}

if [ "$TERM" != "linux" ]; then
    install_powerline_precmd
fi
@ericfreese
zsh-users member

This issue will probably be low priority for me, since I only have so much time to work on this project and I don't use powerline.

If you can figure out a change that fixes your problem without any consequences for other users, I'll be happy to merge it in. Just send a PR to merge into the develop branch.

@Serubin

No worries. I'm not sure I care enough myself at the moment.
I'll put it on my ever-growing todo list

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