Update of /cvsroot/tmux/tmux In directory vz-cvs-2.sog:/tmp/cvs-serv32723 Modified Files: cmd-swap-pane.c Log Message: Sync OpenBSD patchset 909:
Reset last pane on swap-pane across windows, fixes crash noticed by hsim at gmx.li. Index: cmd-swap-pane.c =================================================================== RCS file: /cvsroot/tmux/tmux/cmd-swap-pane.c,v retrieving revision 1.16 retrieving revision 1.17 diff -u -d -r1.16 -r1.17 --- cmd-swap-pane.c 7 Jan 2011 14:45:34 -0000 1.16 +++ cmd-swap-pane.c 18 May 2011 20:32:04 -0000 1.17 @@ -129,6 +129,12 @@ if (dst_w->active == dst_wp) window_set_active_pane(dst_w, src_wp); } + if (src_w != dst_w) { + if (src_w->last == src_wp) + src_w->last = NULL; + if (dst_w->last == dst_wp) + dst_w->last = NULL; + } server_redraw_window(src_w); server_redraw_window(dst_w); ------------------------------------------------------------------------------ What Every C/C++ and Fortran developer Should Know! Read this article and learn how Intel has extended the reach of its next-generation tools to help Windows* and Linux* C/C++ and Fortran developers boost performance applications - including clusters. http://p.sf.net/sfu/intel-dev2devmay _______________________________________________ tmux-cvs mailing list tmux-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-cvs