heroku / cli

Heroku CLI
https://devcenter.heroku.com/articles/heroku-cli
ISC License
849 stars 221 forks source link

ZSH autocomplete adds extra blank lines for any other autocompletion #957

Closed stof closed 8 months ago

stof commented 6 years ago

Since I enabled the ZSH autocomplete for the heroku CLI, triggering autocompletion for any other command than Heroku triggers the addition of a new line on the terminal (making the current command moves up). This was not the case before enabling it.

Impacting the autocompletion of other commands looks really unexpected to me.

stof commented 6 years ago

See https://asciinema.org/a/9hXyG0KN5WNkQy2LnSAF32YJ5?t=12 for a recording of the terminal

RasPhilCo commented 6 years ago

Hey @stof, set HEROKU_AC_ZSH_SKIP_ELLIPSIS=1 in your .zshrc, re-source .zshrc, then run heroku autocomplete --refresh-cache and that should get rid of the ellipsis (it's a zsh helper function). Let me know how if that's successful.

stof commented 6 years ago

Well, my issue is not really related to the ellipsis (even though I might skip it), but to the extra blank lines being added for each autocomplete trigger. Would that also be removed when removing the ellipsis ?

RasPhilCo commented 6 years ago

Looks like a known issue: https://github.com/sorin-ionescu/prezto/issues/1245.

Updating zsh seems to fix: https://github.com/apjanke/dotfiles/issues/7.