Disable async

This commit is contained in:
Maciej Dems 2023-06-09 11:20:34 +02:00
parent 36f37f50d1
commit 33f442af07

View file

@ -3,7 +3,7 @@
# v0.7.0 # v0.7.0
# Copyright (c) 2013 Thiago de Arruda # Copyright (c) 2013 Thiago de Arruda
# Copyright (c) 2016-2021 Eric Freese # Copyright (c) 2016-2021 Eric Freese
# #
# Permission is hereby granted, free of charge, to any person # Permission is hereby granted, free of charge, to any person
# obtaining a copy of this software and associated documentation # obtaining a copy of this software and associated documentation
# files (the "Software"), to deal in the Software without # files (the "Software"), to deal in the Software without
@ -12,10 +12,10 @@
# copies of the Software, and to permit persons to whom the # copies of the Software, and to permit persons to whom the
# Software is furnished to do so, subject to the following # Software is furnished to do so, subject to the following
# conditions: # conditions:
# #
# The above copyright notice and this permission notice shall be # The above copyright notice and this permission notice shall be
# included in all copies or substantial portions of the Software. # included in all copies or substantial portions of the Software.
# #
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
# OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND # OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
@ -893,9 +893,9 @@ autoload -Uz add-zsh-hook is-at-least
# older versions because there is a bug when using async mode where ^C does not # older versions because there is a bug when using async mode where ^C does not
# work immediately after fetching a suggestion. # work immediately after fetching a suggestion.
# See https://github.com/zsh-users/zsh-autosuggestions/issues/364 # See https://github.com/zsh-users/zsh-autosuggestions/issues/364
if is-at-least 5.0.8; then # if is-at-least 5.0.8; then
typeset -g ZSH_AUTOSUGGEST_USE_ASYNC= # typeset -g ZSH_AUTOSUGGEST_USE_ASYNC=
fi # fi
# Start the autosuggestion widgets on the next precmd # Start the autosuggestion widgets on the next precmd
add-zsh-hook precmd _zsh_autosuggest_start add-zsh-hook precmd _zsh_autosuggest_start