summary refs log tree commit diff stats
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
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.
-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
33:51 -0700 6396' href='/akkartik/mu/commit/html/102kernel-string.subx.html?h=hlt&id=f92836550b68fa7df077ea8cedbe7aa35a1095f4'>f9283655 ^
9a777801 ^









ec73ed12 ^
9a777801 ^

ec73ed12 ^
9a777801 ^




f9283655 ^
ec73ed12 ^
f9283655 ^






























































9a777801 ^



1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151