sorin-ionescu / prezto

The configuration framework for Zsh
MIT License
14.02k stars 4.49k forks source link

Unused autosuggestion is not cleared #1093

Open sorin-ionescu opened 8 years ago

sorin-ionescu commented 8 years ago

It seems to be caused by the editor module.

andresilva commented 8 years ago

I've tracked it down to this line.

andresilva commented 8 years ago

The autosuggestion is also not cleared if you don't execute any command and just hit Ctrl-C, although I don't know if that's expected behavior.

sorin-ionescu commented 8 years ago

I tracked it down to that line as well. The solution is adding ZSH_AUTOSUGGEST_PARTIAL_ACCEPT_WIDGETS+=(editor-info) to init.zsh.

In fish, Ctrl-C clears the line, but does not abandon the prompt. It's probably mutually exclusive to auto-suggestions.

santiycr commented 8 years ago

+1

jeffwidman commented 8 years ago

The solution is adding ZSH_AUTOSUGGEST_PARTIAL_ACCEPT_WIDGETS+=(editor-info) to init.zsh.

Any reason you haven't commited that as a fix in prezto?

ratheesh commented 8 years ago

I still see this issue even after applying sorin's fix.

ratheesh commented 8 years ago

In addition to sorin's fix, If I disable the line this line, this problem disappears. I am currently using sorin theme where zle reset-prompt is called. I am not sure if this issue is about calling this function twice.

LandonSchropp commented 8 years ago

:+1: Running into this as well. Here's a screenshot of what I'm seeing (git s is an alias for git status)

screen shot 2016-10-05 at 3 58 22 pm