Re: Regression: Length limit of window-status-format doesn't work on the tip

2013-08-02 Thread Naseer Ahmed
Thanks - this patch fixes it. On Fri, Aug 2, 2013 at 12:48 PM, Nicholas Marriott < nicholas.marri...@gmail.com> wrote: > In fact try this instead, this one changes the syntax to prefix it with > an =, so #{=20:pane_title}. This'll mean later on we can add additional > operators for padding, quot

Re: Regression: Length limit of window-status-format doesn't work on the tip

2013-08-02 Thread Nicholas Marriott
In fact try this instead, this one changes the syntax to prefix it with an =, so #{=20:pane_title}. This'll mean later on we can add additional operators for padding, quoting etc without conflicting with length limits. diff --git a/format.c b/format.c index 0845df6..b7faab3 100644 --- a/format.c +

Re: Regression: Length limit of window-status-format doesn't work on the tip

2013-08-02 Thread Nicholas Marriott
Ah yes this was lost when we changed to just use the format aliases code. Try this diff for now which lets you set a length limit when using the full format. You'll want to use #{20:pane_title} instead of #20T. diff --git a/format.c b/format.c index 0845df6..7ed6fb2 100644 --- a/format.c +++ b/for

Regression: Length limit of window-status-format doesn't work on the tip

2013-08-02 Thread Naseer Ahmed
This option used to work on tmux-1.8, now it just shows the full title. set-option -gw window-status-format "#I:#20W#F" -- Get your SQL database under version control now! Version control is standard for application code,

Re: Explicitely specifying tmux's dependencies

2013-08-02 Thread Pedro Mata-Mouros
Sorry I've been silent on this, especially since I requested it. I'll make sure I test it next week and report back, if someone doesn't test it later. Thanks Nicholas and especially Thomas for the patch! Pedro. On 2 Aug 2013, at 14:14, Nicholas Marriott wrote: > Anyone test this? > > > On T

Re: Explicitely specifying tmux's dependencies

2013-08-02 Thread Nicholas Marriott
Anyone test this? On Tue, Jul 30, 2013 at 02:58:58PM +0100, Thomas Adam wrote: > On Tue, Jul 30, 2013 at 01:46:50PM +0100, Nicholas Marriott wrote: > > This seems wrong, comments inline. > > Good; I did ask for testing. :) > > > I think you need to drop this else if you just rely on pkgconfig

Re: [PATCH 1/1] Allow conditional formats to expand formats

2013-08-02 Thread Nicholas Marriott
How about this? diff --git a/format.c b/format.c index 0845df6..9a3ed07 100644 --- a/format.c +++ b/format.c @@ -191,7 +191,7 @@ int format_replace(struct format_tree *ft, const char *key, size_t keylen, char **buf, size_t *len, size_t *off) { - char*copy, *ptr; + c