'main': Don't add multiple styles for a single parameter's expansion.

See https://github.com/zsh-users/zsh-syntax-highlighting/pull/684#issuecomment-589960462
This commit is contained in:
Daniel Shahaf 2020-02-22 14:19:46 +00:00
parent fb074f1159
commit 8be98dc76c

View File

@ -85,6 +85,7 @@ _zsh_highlight_main_add_region_highlight() {
return return
fi fi
param_style=$1 param_style=$1
return
fi fi
# The calculation was relative to $buf but region_highlight is relative to $BUFFER. # The calculation was relative to $buf but region_highlight is relative to $BUFFER.