On Sun, Nov 21, 2010 at 04:18:12PM +0000, Nicholas Marriott wrote:
> Does this fix it?
> 
> Index: window.c
> ===================================================================
> RCS file: /cvs/src/usr.bin/tmux/window.c,v
> retrieving revision 1.58
> retrieving revision 1.59
> diff -u -p -r1.58 -r1.59
> --- window.c  23 Oct 2010 13:04:34 -0000      1.58
> +++ window.c  14 Nov 2010 08:58:25 -0000      1.59
> @@ -325,6 +325,8 @@ window_resize(struct window *w, u_int sx
>  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)) {
> @@ -342,7 +344,7 @@ window_set_active_at(struct window *w, u
>       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;
> 

Ah -- I tried this myself -- unfortunately not.  Still the same crash.

-- Thomas Adam

-- 
"Deep in my heart I wish I was wrong.  But deep in my heart I know I am
not." -- Morrissey ("Girl Least Likely To" -- off of Viva Hate.)

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to