mirror of
https://github.com/tmux/tmux.git
synced 2026-03-06 15:55:33 +00:00
Revert r1.343 for the moment since it breaks behaviour (#() in
status-left) that we need to keep.
This commit is contained in:
6
format.c
6
format.c
@@ -5224,13 +5224,11 @@ format_replace(struct format_expand_state *es, const char *key, size_t keylen,
|
|||||||
done:
|
done:
|
||||||
/* Expand again if required. */
|
/* Expand again if required. */
|
||||||
if (modifiers & FORMAT_EXPAND) {
|
if (modifiers & FORMAT_EXPAND) {
|
||||||
format_copy_state(&next, es, FORMAT_EXPAND_NOJOBS);
|
new = format_expand1(es, value);
|
||||||
new = format_expand1(&next, value);
|
|
||||||
free(value);
|
free(value);
|
||||||
value = new;
|
value = new;
|
||||||
} else if (modifiers & FORMAT_EXPANDTIME) {
|
} else if (modifiers & FORMAT_EXPANDTIME) {
|
||||||
format_copy_state(&next, es, FORMAT_EXPAND_TIME|
|
format_copy_state(&next, es, FORMAT_EXPAND_TIME);
|
||||||
FORMAT_EXPAND_NOJOBS);
|
|
||||||
new = format_expand1(&next, value);
|
new = format_expand1(&next, value);
|
||||||
free(value);
|
free(value);
|
||||||
value = new;
|
value = new;
|
||||||
|
|||||||
Reference in New Issue
Block a user