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 Jul 28, 2022
1 parent ac738bb commit 650140f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ble-color.sh
Expand Up @@ -532,8 +532,8 @@ function ble-highlight-layer:region/update {
local rlen=${#selection[@]}

# 変更がない時はそのまま通過
if ((DMIN<0)); then
if [[ $sgr == $osgr && ${selection[*]} == ${_ble_highlight_layer_region_osel[*]} ]]; 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
fi
Expand Down

0 comments on commit 650140f

Please sign in to comment.