aewl
diff view.c @ 450:728c9089b079
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 diff
1.1 --- a/view.c Fri Sep 08 07:40:16 2006 +0200 1.2 +++ b/view.c Fri Sep 08 08:19:54 2006 +0200 1.3 @@ -77,8 +77,8 @@ 1.4 ban(c); 1.5 } 1.6 if(!sel || !isvisible(sel)) { 1.7 - for(sel = stack; sel && !isvisible(sel); sel = sel->snext); 1.8 - focus(sel); 1.9 + for(c = stack; c && !isvisible(c); c = c->snext); 1.10 + focus(c); 1.11 } 1.12 restack(); 1.13 } 1.14 @@ -141,8 +141,8 @@ 1.15 ban(c); 1.16 } 1.17 if(!sel || !isvisible(sel)) { 1.18 - for(sel = stack; sel && !isvisible(sel); sel = sel->snext); 1.19 - focus(sel); 1.20 + for(c = stack; c && !isvisible(c); c = c->snext); 1.21 + focus(c); 1.22 } 1.23 restack(); 1.24 }