This should fix it I think: Index: cmd-break-pane.c =================================================================== RCS file: /cvs/src/usr.bin/tmux/cmd-break-pane.c,v retrieving revision 1.10 diff -u -p -r1.10 cmd-break-pane.c --- cmd-break-pane.c 4 Jan 2011 00:42:46 -0000 1.10 +++ cmd-break-pane.c 8 May 2011 21:26:32 -0000 @@ -57,12 +57,18 @@ cmd_break_pane_exec(struct cmd *self, st return (-1); } - TAILQ_REMOVE(&wl->window->panes, wp, entry); - if (wl->window->active == wp) { - wl->window->active = TAILQ_PREV(wp, window_panes, entry); - if (wl->window->active == NULL) - wl->window->active = TAILQ_NEXT(wp, entry); - } + w = wl->window; + TAILQ_REMOVE(&w->panes, wp, entry); + if (wp == w->active) { + w->active = w->last; + w->last = NULL; + if (w->active == NULL) { + w->active = TAILQ_PREV(wp, window_panes, entry); + if (w->active == NULL) + w->active = TAILQ_NEXT(wp, entry); + } + } else if (wp == w->last) + w->last = NULL; layout_close_pane(wp); w = wp->window = window_create1(s->sx, s->sy);
On Sat, Apr 23, 2011 at 10:44:38PM +0100, Nicholas Marriott wrote: > I can reproduce this, looks like bad cursor positioning after > break-pane. Mailing so others can look and it doesn't get forgotten. > > ------------------------------------------------------------------------------ > Fulfilling the Lean Software Promise > Lean software platforms are now widely adopted and the benefits have been > demonstrated beyond question. Learn why your peers are replacing JEE > containers with lightweight application servers - and what you can gain > from the move. http://p.sf.net/sfu/vmware-sfemails > _______________________________________________ > tmux-users mailing list > tmux-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/tmux-users ------------------------------------------------------------------------------ WhatsUp Gold - Download Free Network Management Software The most intuitive, comprehensive, and cost-effective network management toolset available today. Delivers lowest initial acquisition cost and overall TCO of any competing solution. http://p.sf.net/sfu/whatsupgold-sd _______________________________________________ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users