mirror of
https://github.com/zsh-users/zsh-autosuggestions.git
synced 2024-12-30 00:03:56 +08:00
Do not show any error output from async zpty server process
This commit is contained in:
parent
ed8056c5e8
commit
9feac573c9
|
@ -20,6 +20,10 @@ _zsh_autosuggest_async_server() {
|
||||||
# Output only newlines (not carriage return + newline)
|
# Output only newlines (not carriage return + newline)
|
||||||
stty -onlcr
|
stty -onlcr
|
||||||
|
|
||||||
|
|
||||||
|
# Silence any error messages
|
||||||
|
exec 2>/dev/null
|
||||||
|
|
||||||
local strategy=$1
|
local strategy=$1
|
||||||
local last_pid
|
local last_pid
|
||||||
|
|
||||||
|
|
|
@ -550,6 +550,10 @@ _zsh_autosuggest_async_server() {
|
||||||
# Output only newlines (not carriage return + newline)
|
# Output only newlines (not carriage return + newline)
|
||||||
stty -onlcr
|
stty -onlcr
|
||||||
|
|
||||||
|
|
||||||
|
# Silence any error messages
|
||||||
|
exec 2>/dev/null
|
||||||
|
|
||||||
local strategy=$1
|
local strategy=$1
|
||||||
local last_pid
|
local last_pid
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user