Skip to content

Commit 6bf6a66

Browse files
committed
[colors-] keep highest precedence with ColorAttr #2017
1 parent 5b59b02 commit 6bf6a66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

visidata/color.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def update_attr(oldattr:ColorAttr, updattr:ColorAttr, updprec:int=None) -> Color
5656
if newbg < 0 or (updbg >= 0 and updprec > newprec):
5757
newbg = updbg
5858

59-
newprec = updprec
59+
newprec = max(updprec, newprec)
6060

6161
return ColorAttr(newfg, newbg, newattr, newprec)
6262

0 commit comments

Comments
 (0)