From 60b566061fc9948a97735802fd637baddaced7b2 Mon Sep 17 00:00:00 2001 From: Toon Nolten Date: Sat, 8 Sep 2018 22:18:53 +0200 Subject: Fix unbrightened selection BRIGHT is additive, not idempotent like bold is. This caused what should be bright text to be "unbrightened" again. --- ranger/colorschemes/default.py | 4 ++-- 1 file 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 -- cgit 1.4.1-2-gfad0