Fix highlighting on new line with same buffer

This commit is contained in:
Mounier Florian 2011-01-05 14:27:22 +01:00
parent a765f76656
commit f78e444451

View file

@ -101,7 +101,7 @@ _zsh_highlight-string() {
# Recolorize the current ZLE buffer.
_zsh_highlight-zle-buffer() {
# Avoid doing the same work over and over
[[ ${ZSH_PRIOR_HIGHLIGHTED_BUFFER:-} == $BUFFER ]] && return
[[ ${ZSH_PRIOR_HIGHLIGHTED_BUFFER:-} == $BUFFER ]] && [[ ${#region_highlight} -gt 0 ]] && return
ZSH_PRIOR_HIGHLIGHTED_BUFFER=$BUFFER
setopt localoptions extendedglob bareglobqual