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

Fixes #11322
master
Carlo Sala 3 years ago
parent ea4854dba3
commit f8bf8f0029
No known key found for this signature in database
GPG Key ID: DA6FB450C1A4FE9A
  1. 2
      plugins/sudo/sudo.plugin.zsh

@ -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
}
}

Loading…
Cancel
Save