Re: move-window doesn't work with -r

2015-03-31 Thread Jan Larres
On 01/04/15 12:53, Thomas Adam wrote: > Renumbering of winlinks only happens when the winlink is > killed/destroyed (assuming renumber-windows session option). The point > of 'movew -r' is solely to renumber the winlinks. You can use it with > -t to specify the target, but NOT -s for the source.

Re: [PATCH] Update environment when switching sessions

2015-03-31 Thread Thomas Adam
On Tue, Mar 31, 2015 at 08:56:15AM +0100, Si Beaumont wrote: > + /* Update the environment if we're switching clients */ > + if (c != NULL) { > + if (s != c->session) { > + update = options_get_string(&global_s_options, > "update-environment"); I think you

Re: move-window doesn't work with -r

2015-03-31 Thread Thomas Adam
On Wed, Apr 01, 2015 at 12:22:27PM +1300, Jan Larres wrote: > Are you saying that "move-window -r" is essentially a completely different > command that doesn't actually involve moving windows? That is not made clear > in the man page, and is not exactly intuitive. I had interpreted the option to >

Re: move-window doesn't work with -r

2015-03-31 Thread Jan Larres
Hi, On 31/03/15 19:53, Thomas Adam wrote: > On 31 Mar 2015 04:26, "Jan Larres" > wrote: >> there seems to be a bug in the move-window command when using the -r option. >> >> Let's assume I have a session "0" with two windows and a session "1" with one >> window. In of

Re: [PATCH] Add format for reading session activity

2015-03-31 Thread Nicholas Marriott
Applied to OpenBSD now, thanks On Fri, Feb 27, 2015 at 04:40:07PM +0900, Takatoshi Matsumoto wrote: > Hi, this patch adds session_activity and session_activity_string. > With these additions, it's possible to do some operations to sessions by > active time from CLI. > > e.g. getting last active

Re: patch for bug in window_copy_append_selection

2015-03-31 Thread Nicholas Marriott
Hi Would this fix it instead? Index: paste.c === RCS file: /cvs/src/usr.bin/tmux/paste.c,v retrieving revision 1.26 diff -u -p -r1.26 paste.c --- paste.c 5 Nov 2014 23:25:02 - 1.26 +++ paste.c 31 Mar 2015 17:50:54 -

Re: [PATCHv2 1/4] make PROTOCOL_VERSION unsigned

2015-03-31 Thread Nicholas Marriott
Hi After some thought I decided to leave PROTOCOL_VERSION as it is. I've applied most of your second diff (the format specifiers) except I have left enums as %d (their type is dependent on the compiler and I think GCC is wrong to warn as if they are unsigned). I've applied the capture-pane part (

[PATCH] Update environment when switching sessions

2015-03-31 Thread Si Beaumont
When running multiple sessions and also changing host environment frequently, it can become troublesome to keep the environment up to date within tmux. For example if one SSHs in from a different location, the SSH_AUTH_SOCK will change. This is solved by the update-environment command and can be c