Sfoglia il codice sorgente

Output only newlines in the pty

pull/180/head
Eric Freese 7 anni fa
parent
commit
e5a5b0c1e0
2 ha cambiato i file con 6 aggiunte e 0 eliminazioni
  1. +3
    -0
      src/async.zsh
  2. +3
    -0
      zsh-autosuggestions.zsh

+ 3
- 0
src/async.zsh Vedi File

@ -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 Vedi File

@ -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

Caricamento…
Annulla
Salva