about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--src/config/color.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/config/color.c b/src/config/color.c
index ff0d8ca0..c386ec81 100644
--- a/src/config/color.c
+++ b/src/config/color.c
@@ -355,8 +355,8 @@ static int find_col(const char *col_name, int n)
 void color_pair_cache_reset(void)
 {
     if (cache.pairs) {
-	free(cache.pairs);
-	memset(&cache, 0, sizeof(cache));
+        free(cache.pairs);
+        memset(&cache, 0, sizeof(cache));
     }
 
     /*
@@ -398,9 +398,11 @@ int color_pair_cache_get(const char *pair_name)
     }
 
     /* try to find pair in cache */
-    for (i = 0; i < cache.size; i++)
-	if (fg == cache.pairs[i].fg && bg == cache.pairs[i].bg)
-	    return i;
+    for (i = 0; i < cache.size; i++) {
+        if (fg == cache.pairs[i].fg && bg == cache.pairs[i].bg) {
+            return i;
+        }
+    }
 
     /* otherwise cache new pair */
 
K. Agaram <vc@akkartik.com> 2016-03-26 23:59:59 -0700 committer Kartik K. Agaram <vc@akkartik.com> 2016-03-27 17:43:41 -0700 2812' href='/akkartik/mu/commit/html/075random.cc.html?h=hlt&id=a654e4ecace2d506d1b10f1dde2c287ebe84ef37'>a654e4ec ^
c5ffb6e1 ^

4a39d12d ^
e4ac3c9e ^











fe8bf967 ^
e4ac3c9e ^
c5ffb6e1 ^

a654e4ec ^



e5c11a51 ^






















a654e4ec ^

c5ffb6e1 ^
e5c11a51 ^
e4ac3c9e ^
a654e4ec ^
204dae92 ^


e4ac3c9e ^
204dae92 ^















e4ac3c9e ^
204dae92 ^










51728d93 ^
204dae92 ^
c5ffb6e1 ^


a654e4ec ^
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