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

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

Treat trying to link or move to the same window as an error to avoid
removing it accidentally.


Index: server-fn.c
===================================================================
RCS file: /cvsroot/tmux/tmux/server-fn.c,v
retrieving revision 1.109
retrieving revision 1.110
diff -u -d -r1.109 -r1.110
--- server-fn.c 9 Aug 2010 21:44:25 -0000       1.109
+++ server-fn.c 11 Aug 2010 22:16:43 -0000      1.110
@@ -281,7 +281,7 @@
                dstwl = winlink_find_by_index(&dst->windows, dstidx);
        if (dstwl != NULL) {
                if (dstwl->window == srcwl->window)
-                       return (0);
+                       return (-1);
                if (killflag) {
                        /*
                         * Can't use session_detach as it will destroy session


------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
tmux-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tmux-cvs

Reply via email to