region: Highlight the region even when it's inactive, e.g., after <set-mark-command>.

This commit is contained in:
Daniel Shahaf 2016-01-15 00:04:12 +00:00
commit 7affd7e2fe
2 changed files with 38 additions and 1 deletions

View file

@ -114,7 +114,7 @@ _zsh_highlight()
# Re-apply zle_highlight settings
() {
if (( REGION_ACTIVE )) ; then
if (( MARK > 0 )) || (( REGION_ACTIVE )) ; then
# zle_highlight[region] defaults to 'standout' if unspecified
local region="${${zle_highlight[(r)region:*]#region:}:-standout}"
integer start end