Pārlūkot izejas kodu

Output only newlines in the pty

pull/180/head
Eric Freese pirms 7 gadiem
vecāks
revīzija
e5a5b0c1e0
2 mainītis faili ar 6 papildinājumiem un 0 dzēšanām
  1. +3
    -0
      src/async.zsh
  2. +3
    -0
      zsh-autosuggestions.zsh

+ 3
- 0
src/async.zsh Parādīt failu

@ -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 Parādīt failu

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

Notiek ielāde…
Atcelt
Saglabāt