diff options
author | nicm <nicm> | 2017-11-02 18:43:51 +0000 |
---|---|---|
committer | nicm <nicm> | 2017-11-02 18:43:51 +0000 |
commit | 95850e1aca6697df784d02c24a0ca997f82f90f7 (patch) | |
tree | 1a065e881718d2db8c73048c3410ccf520c4bfdc /format.c | |
parent | c1f62f1fdebc3bd000b81bd93dcae6f1a539f345 (diff) | |
download | rtmux-95850e1aca6697df784d02c24a0ca997f82f90f7.tar.gz rtmux-95850e1aca6697df784d02c24a0ca997f82f90f7.tar.bz2 rtmux-95850e1aca6697df784d02c24a0ca997f82f90f7.zip |
Tweak previous slightly so that current session is chosen if it is in
the group rather than first.
Diffstat (limited to 'format.c')
-rw-r--r-- | format.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -795,8 +795,11 @@ format_find(struct format_tree *ft, const char *key, int modifiers) found = s; goto found; } - if (fe->value == NULL && fe->cb != NULL) + if (fe->value == NULL && fe->cb != NULL) { fe->cb(ft, fe); + if (fe->value == NULL) + fe->value = xstrdup(""); + } found = fe->value; goto found; } |