diff view.c @ 450:728c9089b079 1.5

applied sanders patch of not manipulating sel
author Anselm R. Garbe <arg@10kloc.org>
date Fri, 08 Sep 2006 08:19:54 +0200
parents a2e587651c79
children 9d23330a5268
line wrap: on
line diff
--- a/view.c	Fri Sep 08 07:40:16 2006 +0200
+++ b/view.c	Fri Sep 08 08:19:54 2006 +0200
@@ -77,8 +77,8 @@
 			ban(c);
 	}
 	if(!sel || !isvisible(sel)) {
-		for(sel = stack; sel && !isvisible(sel); sel = sel->snext);
-		focus(sel);
+		for(c = stack; c && !isvisible(c); c = c->snext);
+		focus(c);
 	}
 	restack();
 }
@@ -141,8 +141,8 @@
 			ban(c);
 	}
 	if(!sel || !isvisible(sel)) {
-		for(sel = stack; sel && !isvisible(sel); sel = sel->snext);
-		focus(sel);
+		for(c = stack; c && !isvisible(c); c = c->snext);
+		focus(c);
 	}
 	restack();
 }