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

Modified Files:
        server-fn.c 
Log Message:
Sync OpenBSD patchset 770:

Set cause when failing due to linking a window to itself, from Martin
Pieuchot.


Index: server-fn.c
===================================================================
RCS file: /cvsroot/tmux/tmux/server-fn.c,v
retrieving revision 1.112
retrieving revision 1.113
diff -u -d -r1.112 -r1.113
--- server-fn.c 9 Oct 2010 14:31:14 -0000       1.112
+++ server-fn.c 9 Oct 2010 14:31:50 -0000       1.113
@@ -280,8 +280,10 @@
        if (dstidx != -1)
                dstwl = winlink_find_by_index(&dst->windows, dstidx);
        if (dstwl != NULL) {
-               if (dstwl->window == srcwl->window)
+               if (dstwl->window == srcwl->window) {
+                       xasprintf(cause, "same index: %d", dstidx);
                        return (-1);
+               }
                if (killflag) {
                        /*
                         * Can't use session_detach as it will destroy session


------------------------------------------------------------------------------
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/beautyoftheweb
_______________________________________________
tmux-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tmux-cvs

Reply via email to