Fix handling of newline + carriage return in async pty (#333)
This commit is contained in:
@@ -595,9 +595,12 @@ _zsh_autosuggest_async_server() {
|
||||
sleep 1 # Block for long enough for the signal to come through
|
||||
}
|
||||
|
||||
# Output only newlines (not carriage return + newline)
|
||||
# Don't add any extra carriage returns
|
||||
stty -onlcr
|
||||
|
||||
# Don't translate carriage returns to newlines
|
||||
stty -icrnl
|
||||
|
||||
# Silence any error messages
|
||||
exec 2>/dev/null
|
||||
|
||||
|
||||
Reference in New Issue
Block a user