-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
strange behavior when using 'setopt ignoreeof' and zsh-syntax-highlighting #377
Comments
This is another variant of issue #245. The fix to this issue is to be merged soon, however, it requires zsh 5.3. Until then, you can try the following workaround: ctrl-d() { zle -M "zsh: use 'exit' to exit."; return 1 }
zle -N ctrl-d Put that in your .zshrc before sourcing z-sy-h. (I tried just For future reference, the message you got is because Ctrl+d also serves as a "list completions" binding; it is bound to the |
Sorry, that example was incomplete. It needs another line: ctrl-d() { zle -M "zsh: use 'exit' to exit."; return 1 }
zle -N ctrl-d
bindkey '^D' ctrl-d |
Fixed on the feature/redrawhook branch. |
Under the same conditions as OP (sending The aforementioned solution mentioned by @danielshahaf works; so I’ll be using it for now, but it seems silly to use instead of using Should I open a new issue referencing this one? |
I can't reproduce this. Starting from zsh -f
I get the |
I have
setopt ignoreeof
at the beginning of my.zshrc
file. Normally, when I presctrl+d
I get following message:zsh: use 'exit' to exit.
That is desired behavior.Now when I source
sh-syntax-highlighting
in.zshrc
, suddenlyctrl+d
behaves weird. When I presctrl+d
I get a list of all available commands, and at the bottom of the screenAt Top: Hit TAB for more, or character to insert
.The text was updated successfully, but these errors were encountered: