Fix completion suggestions when compinit is not enabled

Need to make sure compinit is called in the pty or the shell hangs
pull/344/head
Eric Freese 7 years ago
parent 3dbd9afaec
commit cf458d2a3b

@ -9,6 +9,8 @@
_zsh_autosuggest_capture_setup() {
zmodload zsh/zutil # For `zparseopts`
autoload compinit && compinit
# There is a bug in zpty module (fixed in zsh/master) by which a
# zpty that exits will kill all zpty processes that were forked
# before it. Here we set up a zsh exit hook to SIGKILL the zpty

@ -506,6 +506,8 @@ zle -N autosuggest-toggle _zsh_autosuggest_widget_toggle
_zsh_autosuggest_capture_setup() {
zmodload zsh/zutil # For `zparseopts`
autoload compinit && compinit
# There is a bug in zpty module (fixed in zsh/master) by which a
# zpty that exits will kill all zpty processes that were forked
# before it. Here we set up a zsh exit hook to SIGKILL the zpty

Loading…
Cancel
Save