Revision: 2798
          http://tmux.svn.sourceforge.net/tmux/?rev=2798&view=rev
Author:   tcunha
Date:     2012-05-22 20:50:03 +0000 (Tue, 22 May 2012)
Log Message:
-----------
Sync OpenBSD patchset 1112:

Use -t for move-window with -r rather than dying. Reported by Ben
Boeckel and Thomas Adam.

Modified Paths:
--------------
    trunk/cmd-move-window.c

Modified: trunk/cmd-move-window.c
===================================================================
--- trunk/cmd-move-window.c     2012-05-20 11:09:17 UTC (rev 2797)
+++ trunk/cmd-move-window.c     2012-05-22 20:50:03 UTC (rev 2798)
@@ -47,11 +47,10 @@
        char            *cause;
        int              idx, kflag, dflag;
 
-       if ((s = ctx->curclient->session) == NULL)
-               return (-1);
+       if (args_has(args, 'r')) {
+               if ((s = cmd_find_session(ctx, args_get(args, 't'), 0)) == NULL)
+                       return (-1);
 
-       if (args_has(args, 'r'))
-       {
                session_renumber_windows(s);
                recalculate_sizes();
 

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
tmux-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tmux-cvs

Reply via email to