mirror of
https://github.com/zsh-users/zsh-autosuggestions.git
synced 2024-12-28 15:14:51 +08:00
Output only newlines in the pty
This commit is contained in:
parent
0337005eb0
commit
e5a5b0c1e0
|
@ -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 New Issue
Block a user