mirror of
https://github.com/zsh-users/zsh-autosuggestions.git
synced 2024-12-23 10:21:15 +01:00
Output only newlines in the pty
This commit is contained in:
parent
0337005eb0
commit
e5a5b0c1e0
2 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue