Update of /cvsroot/tmux/tmux
In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv10437

Modified Files:
        window.c 
Log Message:
PatchSet 786
Date: 2010/11/14 08:58:25
Author: nicm
Branch: HEAD
Tag: (none)
Log:
Don't allow last and active window to become the same - a very bad move
when the active window is closed and freed. Reported by st...@.

Members:
        window.c:1.58->1.59



Index: window.c
===================================================================
RCS file: /cvsroot/tmux/tmux/window.c,v
retrieving revision 1.140
retrieving revision 1.141
diff -u -d -r1.140 -r1.141
--- window.c    24 Oct 2010 01:34:30 -0000      1.140
+++ window.c    6 Dec 2010 21:53:50 -0000       1.141
@@ -322,6 +322,8 @@
 void
 window_set_active_pane(struct window *w, struct window_pane *wp)
 {
+       if (wp == w->active)
+               return;
        w->last = w->active;
        w->active = wp;
        while (!window_pane_visible(w->active)) {
@@ -339,7 +341,7 @@
        struct window_pane      *wp;
 
        TAILQ_FOREACH(wp, &w->panes, entry) {
-               if (!window_pane_visible(wp))
+               if (wp == w->active || !window_pane_visible(wp))
                        continue;
                if (x < wp->xoff || x >= wp->xoff + wp->sx)
                        continue;


------------------------------------------------------------------------------
What happens now with your Lotus Notes apps - do you make another costly 
upgrade, or settle for being marooned without product support? Time to move
off Lotus Notes and onto the cloud with Force.com, apps are easier to build,
use, and manage than apps on traditional platforms. Sign up for the Lotus 
Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d
_______________________________________________
tmux-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tmux-cvs

Reply via email to