Kaynağa Gözat

Output only newlines in the pty

pull/180/head
Eric Freese 7 yıl önce
ebeveyn
işleme
e5a5b0c1e0
2 değiştirilmiş dosya ile 6 ekleme ve 0 silme
  1. +3
    -0
      src/async.zsh
  2. +3
    -0
      zsh-autosuggestions.zsh

+ 3
- 0
src/async.zsh Dosyayı Görüntüle

@ -12,6 +12,9 @@ _zsh_autosuggest_async_fetch_suggestion() {
_zsh_autosuggest_async_suggestion_server() {
emulate -R zsh
# Output only newlines (not carriage return + newline)
stty -onlcr
while IFS='' read -r -d $'\0' prefix; do
# Kill last bg process
kill -KILL %1 &>/dev/null

+ 3
- 0
zsh-autosuggestions.zsh Dosyayı Görüntüle

@ -489,6 +489,9 @@ _zsh_autosuggest_async_fetch_suggestion() {
_zsh_autosuggest_async_suggestion_server() {
emulate -R zsh
# Output only newlines (not carriage return + newline)
stty -onlcr
while IFS='' read -r -d $'\0' prefix; do
# Kill last bg process
kill -KILL %1 &>/dev/null

Yükleniyor…
İptal
Kaydet