From 9b004728202d03241009ef5f73980909e9234bc4 Mon Sep 17 00:00:00 2001 From: nicm Date: Thu, 12 Aug 2021 19:47:05 +0000 Subject: Evaluate styles with the pane variables. --- format.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'format.c') diff --git a/format.c b/format.c index 5a295198..9ef4e6e9 100644 --- a/format.c +++ b/format.c @@ -4300,15 +4300,14 @@ format_replace(struct format_expand_state *es, const char *key, size_t keylen, if (strcmp(found, condition) == 0) { free(found); found = xstrdup(""); - format_log(es, "condition '%s' found: %s", - condition, found); - } else { format_log(es, "condition '%s' not found; assuming false", condition); } - } else - format_log(es, "condition '%s' found", condition); + } else { + format_log(es, "condition '%s' found: %s", condition, + found); + } if (format_choose(es, cp + 1, &left, &right, 0) != 0) { format_log(es, "condition '%s' syntax error: %s", -- cgit