Yes, applied, thanks
On Sat, Nov 08, 2014 at 11:40:52AM +0100, Marc Finet wrote: > This could be useful to have string for conditional e.g. > automatic-rename-format #{?pane_title,pane_title,pane_current_command} > This patch makes such an emptry string trigger the second value. > --- > format.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/format.c b/format.c > index ba014b2..edced66 100644 > --- a/format.c > +++ b/format.c > @@ -237,7 +237,8 @@ format_replace(struct format_tree *ft, const char *key, > size_t keylen, > *ptr = '\0'; > > value = format_find(ft, copy + 1); > - if (value != NULL && (value[0] != '0' || value[1] != '\0')) { > + if (value != NULL && value[0] != '\0' && > + (value[0] != '0' || value[1] != '\0')) { > value = ptr + 1; > ptr = strchr(value, ','); > if (ptr == NULL) > -- > 2.1.1 > > > ------------------------------------------------------------------------------ > _______________________________________________ > tmux-users mailing list > tmux-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/tmux-users ------------------------------------------------------------------------------ _______________________________________________ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users