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

Fixes #11322
parent ea4854db
......@@ -96,7 +96,7 @@ sudo-command-line() {
LBUFFER="${WHITESPACE}${LBUFFER}"
# Redisplay edit buffer (compatibility with zsh-syntax-highlighting)
zle redisplay
zle && zle redisplay # only run redisplay if zle is enabled
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment