hlissner / zsh-autopair

Auto-close and delete matching delimiters in zsh
MIT License
509 stars 37 forks source link

Terminates zsh when typing space #15

Closed bmedicke closed 6 years ago

bmedicke commented 6 years ago

I just updated to a01f074 and now every time I type a space the current shell exits. Both when space is the first character and when it follows after any other.

I update every couple of days so it should be from a recent commit. I have disabled all other zplug plugins but it still occurs. I do have a rather large .zshrc, so let me know if I should try again with a minimal config file.

$ zplug --version
2.4.1
$ zsh --version
zsh 5.4.2 (x86_64-apple-darwin17.0.0)
$ sw_vers
ProductName:    Mac OS X
ProductVersion: 10.13
BuildVersion:   17A365

As an aside: zplug's nice has been deprecated, so I'm using zplug "hlissner/zsh-autopair", defer:2 instead. I can send you a pull request if you'd like to change it.

Edit:

b0a995a is the last commit that's working fine for me, so the bug was introduced in e3f9e30: "Refactor & more generalized widget fallthrough #14"

For now I have pinned that commit with: zplug "hlissner/zsh-autopair", defer:2, at:b0a995a

akatrevorjay commented 6 years ago

I also have this issue on Ubuntu Artful and Zesty

hlissner commented 6 years ago

I think this is related to #14, which I've just pushed a fix for. Please update and let me know. If you still have trouble, please include the output of the following:

bmedicke commented 6 years ago

That fixed it, thank you so much! In case you're curious here's the output anyway:

$ setopt
alwaystoend
autopushd
completeinword
noflowcontrol
histignorespace
incappendhistory
interactive
interactivecomments
login
monitor
promptsubst
sharehistory
shinstdin
zle
$ echo ${(@kv)AUTOPAIR_PAIRS}

" " { } ' ' ( ) [ ] ` `
$ echo ${(@kv)AUTOPAIR_FALLBACKS}