Pārlūkot izejas kodu

Disable ^C async workaround for zsh version 5.8 and later

pull/612/head
Andrew Tropin pirms 3 gadiem
vecāks
revīzija
590c1cd84c
Šim parakstam datu bāzē netika atrasta zināma atslēga GPG atslēgas ID: 2208D20958C1DEB0
2 mainītis faili ar 4 papildinājumiem un 2 dzēšanām
  1. +2
    -1
      src/async.zsh
  2. +2
    -1
      zsh-autosuggestions.zsh

+ 2
- 1
src/async.zsh Parādīt failu

@ -44,7 +44,8 @@ _zsh_autosuggest_async_request() {
# There's a weird bug here where ^C stops working unless we force a fork
# See https://github.com/zsh-users/zsh-autosuggestions/issues/364
command true
autoload -Uz is-at-least
is-at-least 5.8 || command true
# Read the pid from the child process
read _ZSH_AUTOSUGGEST_CHILD_PID <&$_ZSH_AUTOSUGGEST_ASYNC_FD

+ 2
- 1
zsh-autosuggestions.zsh Parādīt failu

@ -810,7 +810,8 @@ _zsh_autosuggest_async_request() {
# There's a weird bug here where ^C stops working unless we force a fork
# See https://github.com/zsh-users/zsh-autosuggestions/issues/364
command true
autoload -Uz is-at-least
is-at-least 5.8 || command true
# Read the pid from the child process
read _ZSH_AUTOSUGGEST_CHILD_PID <&$_ZSH_AUTOSUGGEST_ASYNC_FD

Notiek ielāde…
Atcelt
Saglabāt