about summary refs log tree commit diff stats
path: root/layout.c
diff options
context:
space:
mode:
Diffstat (limited to 'layout.c')
-rw-r--r--layout.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/layout.c b/layout.c
index c467080..46e82c2 100644
--- a/layout.c
+++ b/layout.c
@@ -94,10 +94,10 @@ void
 initlayouts(void) {
 	unsigned int i, w;
 
-	lt = &layout[0];
-	nlayouts = sizeof layout / sizeof layout[0];
+	lt = &layouts[0];
+	nlayouts = sizeof layouts / sizeof layouts[0];
 	for(blw = i = 0; i < nlayouts; i++) {
-		w = textw(layout[i].symbol);
+		w = textw(layouts[i].symbol);
 		if(w > blw)
 			blw = w;
 	}
@@ -144,14 +144,14 @@ setlayout(const char *arg) {
 
 	if(!arg) {
 		lt++;
-		if(lt == layout + nlayouts)
-			lt = layout;
+		if(lt == layouts + nlayouts)
+			lt = layouts;
 	}
 	else {
 		i = atoi(arg);
 		if(i < 0 || i >= nlayouts)
 			return;
-		lt = &layout[i];
+		lt = &layouts[i];
 	}
 	if(sel)
 		arrange();
Blame the previous revision' href='/akkartik/mu/blame/mu.vim?h=hlt&id=34a37b475c1f2cdf5ffb6d511409d22f8508d20a'>^
2d4d1440 ^
eaeb43de ^
d23f5ea2 ^

eaeb43de ^



2387a8fb ^

eaeb43de ^

84a77452 ^
eaeb43de ^


783eb31a ^
eaeb43de ^
783eb31a ^
af983921 ^
783eb31a ^

4ef29dc9 ^
fe6d099b ^
783eb31a ^
4ef29dc9 ^
fe6d099b ^
eaeb43de ^

93a4ada6 ^
eaeb43de ^


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