Re: [PATCH] Fix escaping of # in status format

2014-02-03 Thread Thomas Adam
On 31 January 2014 15:45, Nicholas Marriott wrote: > Ok you need to wait for Thomas to sync up the SF repo tonight or apply I've now gone ahead and done this. -- Thomas Adam -- Managing the Performance of Cloud-Based Ap

Re: [PATCH] Fix escaping of # in status format

2014-02-03 Thread Azat Khuzhin
On Fri, Jan 31, 2014 at 7:45 PM, Nicholas Marriott wrote: > Ok you need to wait for Thomas to sync up the SF repo tonight or apply > this as well: Sure, thanks! > > Index: format.c > === > RCS file: /cvs/src/usr.bin/tmux/format.c,v

Re: [PATCH] Fix escaping of # in status format

2014-01-31 Thread Azat Khuzhin
On Fri, Jan 31, 2014 at 3:42 PM, Nicholas Marriott wrote: > Hi > > On Wed, Jan 22, 2014 at 03:18:14PM +0400, Azat Khuzhin wrote: >> @@ -333,7 +333,9 @@ format_expand(struct format_tree *ft, const char *fmt) >> - buf[off++] = ch; >> + if (ch !

Re: [PATCH] Fix escaping of # in status format

2014-01-31 Thread Azat Khuzhin
With you patch: $ tmux -Lfoo new -s test For me, ###S converted to ##test On Fri, Jan 31, 2014 at 3:51 PM, Nicholas Marriott wrote: > Yes it works for me with ###S but if you could check what you were doing > also then that'd be good. > > > On Fri, Jan 31, 2014 at 03:45:21PM +0400, Azat Khuzhin

Re: [PATCH] Fix escaping of # in status format

2014-01-31 Thread Nicholas Marriott
Ok you need to wait for Thomas to sync up the SF repo tonight or apply this as well: Index: format.c === RCS file: /cvs/src/usr.bin/tmux/format.c,v retrieving revision 1.39 retrieving revision 1.40 diff -u -p -r1.39 -r1.40 --- format.

Re: [PATCH] Fix escaping of # in status format

2014-01-31 Thread Nicholas Marriott
Yes it works for me with ###S but if you could check what you were doing also then that'd be good. On Fri, Jan 31, 2014 at 03:45:21PM +0400, Azat Khuzhin wrote: > On Fri, Jan 31, 2014 at 3:42 PM, Nicholas Marriott > wrote: > > Hi > > > > On Wed, Jan 22, 2014 at 03:18:14PM +0400, Azat Khuzhin wro

Re: [PATCH] Fix escaping of # in status format

2014-01-31 Thread Nicholas Marriott
Hi On Wed, Jan 22, 2014 at 03:18:14PM +0400, Azat Khuzhin wrote: > @@ -333,7 +333,9 @@ format_expand(struct format_tree *ft, const char *fmt) > - buf[off++] = ch; > + if (ch != '#') { > + buf[off++] = ch; >

[PATCH] Fix escaping of # in status format

2014-01-22 Thread Azat Khuzhin
After c231381aa3a22340e787baaf78781d9b8ecd6a2c ("Demote the old single-character replacement variables #S") Before this patch, the next command produce '##S': set-option -g status-right '###S' --- I don't sure that this patch must edit format_expand(), but that was easier. format.c | 4 +++- sta