summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorToon Nolten <toonn@toonn.io>2018-09-08 22:18:53 +0200
committertoonn <toonn@toonn.io>2018-09-08 22:38:10 +0200
commit60b566061fc9948a97735802fd637baddaced7b2 (patch)
treeac5901226538440babd1e29e209d756ac50ef1e6 /ranger
parent18d424138fbf1e58b03786bb61a18c9951f0fe7c (diff)
downloadranger-60b566061fc9948a97735802fd637baddaced7b2.tar.gz
Fix unbrightened selection
BRIGHT is additive, not idempotent like bold is. This caused what should
be bright text to be "unbrightened" again.
Diffstat (limited to 'ranger')
-rw-r--r--ranger/colorschemes/default.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ranger/colorschemes/default.py b/ranger/colorschemes/default.py
index e9c42513..a9e01e0c 100644
--- a/ranger/colorschemes/default.py
+++ b/ranger/colorschemes/default.py
@@ -74,13 +74,13 @@ class Default(ColorScheme):
                     attr |= dim
                     fg = white
             if context.main_column:
+                # Doubling up with BRIGHT here causes issues because it's
+                # additive not idempotent.
                 if context.selected:
                     attr |= bold
-                    fg += BRIGHT
                 if context.marked:
                     attr |= bold
                     fg = yellow
-                    fg += BRIGHT
             if context.badinfo:
                 if attr & reverse:
                     bg = magenta