Explorar el Código

Output only newlines in the pty

pull/180/head
Eric Freese hace 7 años
padre
commit
e5a5b0c1e0
Se han modificado 2 ficheros con 6 adiciones y 0 borrados
  1. +3
    -0
      src/async.zsh
  2. +3
    -0
      zsh-autosuggestions.zsh

+ 3
- 0
src/async.zsh Ver fichero

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

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

Cargando…
Cancelar
Guardar