mirror of
https://github.com/zsh-users/zsh-syntax-highlighting.git
synced 2025-12-04 21:56:45 +01:00
Added more styles used in zle_highlight. Updated main README.md and highlighters/main/README.md.
This commit is contained in:
parent
103aecc52e
commit
ad75e32f98
4 changed files with 12 additions and 1 deletions
|
|
@ -93,6 +93,9 @@ _zsh_highlight()
|
|||
|
||||
done
|
||||
|
||||
# Set zle_highlight according to user definition on this package level
|
||||
zle_highlight=(default:$ZSH_HIGHLIGHT_STYLES[default] isearch:$ZSH_HIGHLIGHT_STYLES[isearch] region:$ZSH_HIGHLIGHT_STYLES[region] special:$ZSH_HIGHLIGHT_STYLES[special] suffix:$ZSH_HIGHLIGHT_STYLES[suffix])
|
||||
|
||||
# Bring back region higlighting from zle_highlight array (was overwriten by region_highlight)
|
||||
((REGION_ACTIVE)) && region_highlight+=("$((CURSOR < MARK ? CURSOR : MARK)) $((CURSOR > MARK ? CURSOR : MARK)) ${${(M)zle_highlight[@]:#region*}#region:}")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue