Re: [PATCH] fix cmd_print for commands with no arguments

2012-04-23 Thread Nicholas Marriott
Hi On Mon, Apr 23, 2012 at 02:24:54PM -0400, Benjamin Poirier wrote: > On 2012/04/22 06:24, Nicholas Marriott wrote: > > Applied, thanks! > > > > You're welcome. BTW, I came to fix this bug because I was looking for a > way to keep the tmux buffer 0 synchronized with the X clipboard with a > bin

Re: [PATCH] fix cmd_print for commands with no arguments

2012-04-23 Thread Benjamin Poirier
On 2012/04/22 06:24, Nicholas Marriott wrote: > Applied, thanks! > You're welcome. BTW, I came to fix this bug because I was looking for a way to keep the tmux buffer 0 synchronized with the X clipboard with a binding like this bind [ copy-mode \; run "tmux show-buffer | xclip -i -selection clip

[PATCH] fix cmd_print for commands with no arguments

2012-04-23 Thread Benjamin Poirier
Changes cmd_print to return an offset that does not include the trailing '\0' when the command has no arguments. --- One effect of this is that it allows bind-key to work with command sequences that contain commands with no arguments. For example, the following bind for R does not work without th

Re: [PATCH] fix cmd_print for commands with no arguments

2012-04-21 Thread Nicholas Marriott
Applied, thanks! On Fri, Apr 20, 2012 at 10:37:03AM -0400, Benjamin Poirier wrote: > Changes cmd_print to return an offset that does not include the trailing > '\0' when the command has no arguments. > > --- > > One effect of this is that it allows bind-key to work with command > sequences that