mirror of
https://github.com/zsh-users/zsh-autosuggestions.git
synced 2026-10-02 16:03:50 +02:00
Output only newlines in the pty
This commit is contained in:
1 parent
0337005eb0
commit
e5a5b0c1e0
2 files changed
+6
No files matched your search
@@ -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