1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-12-18 10:22:00 +00:00

fix(sudo): only call redisplay if zle is enabled

Fixes #11322
This commit is contained in:
Carlo Sala 2022-12-15 23:06:06 +01:00
parent ea4854dba3
commit f8bf8f0029
No known key found for this signature in database
GPG key ID: DA6FB450C1A4FE9A

View file

@ -96,7 +96,7 @@ sudo-command-line() {
LBUFFER="${WHITESPACE}${LBUFFER}" LBUFFER="${WHITESPACE}${LBUFFER}"
# Redisplay edit buffer (compatibility with zsh-syntax-highlighting) # Redisplay edit buffer (compatibility with zsh-syntax-highlighting)
zle redisplay zle && zle redisplay # only run redisplay if zle is enabled
} }
} }