mirror of
https://github.com/zsh-users/zsh-autosuggestions.git
synced 2024-05-11 05:54:57 +00:00
Output only newlines in the pty
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user