about summary refs log tree commit diff stats
path: root/view.c
diff options
context:
space:
mode:
Diffstat (limited to 'view.c')
-rw-r--r--view.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/view.c b/view.c
index 503f1c2..f2e4040 100644
--- a/view.c
+++ b/view.c
@@ -260,14 +260,14 @@ zoom(Arg *arg) {
 	for(n = 0, c = nexttiled(clients); c; c = nexttiled(c->next))
 		n++;
 
-	c = sel;
-	if((arrange != dofloat) && c != nexttiled(clients)) {
-		detach(c);
-		if(clients)
-			clients->prev = c;
-		c->next = clients;
-		clients = c;
-		focus(c);
-		arrange();
-	}
+	if((c = sel) == nexttiled(clients))
+		if(!(c = nexttiled(c->next)))
+			return;
+	detach(c);
+	if(clients)
+		clients->prev = c;
+	c->next = clients;
+	clients = c;
+	focus(c);
+	arrange();
 }
ix: duplicate character on enter' href='/akkartik/text.love/commit/manual_tests?id=dcfa2d04cace094775ba4fd468a75ed2831ebcc6'>dcfa2d0 ^
5d8e7a3 ^


bb9e23a ^
5d8e7a3 ^
dcfa2d0 ^

7e6705a ^







c28f6ba ^
ce94f8b ^
7e6705a ^
c28f6ba ^
10c9618 ^


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