@ -260,8 +260,9 @@ zoom(Arg *arg) {
for(n = 0, c = nexttiled(clients); c; c = nexttiled(c->next))
n++;
c = sel;
if((arrange != dofloat) && c != nexttiled(clients)) {
if((c = sel) == nexttiled(clients))
if(!(c = nexttiled(c->next)))
return;
detach(c);
if(clients)
clients->prev = c;
@ -270,4 +271,3 @@ zoom(Arg *arg) {
focus(c);
arrange();
}