Skip to content

Commit

Permalink
highlight (layer:region): fix blocked lower-layer changes without sel…
Browse files Browse the repository at this point in the history
…ection changes
  • Loading branch information
akinomyoga committed Feb 6, 2022
1 parent 94cc9d2 commit d40d42a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/color.sh
Expand Up @@ -869,7 +869,7 @@ function ble/highlight/layer:region/update {
local rlen=${#selection[@]}

# 変更がない時はそのまま通過
if ((DMIN<0)); then
if ((DMIN<0&&(PREV_UMIN<0||${#selection[*]}>=2&&selection[0]<=PREV_UMIN&&PREV_UMAX<=selection[1]))); then
if [[ $sgr == "$osgr" && ${selection[*]} == "${_ble_highlight_layer_region_osel[*]}" ]]; then
[[ ${selection[*]} ]] && PREV_BUFF=_ble_highlight_layer_region_buff
return 0
Expand Down

0 comments on commit d40d42a

Please sign in to comment.