summaryrefslogtreecommitdiffstats
path: root/format.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2021-05-03 06:39:17 +0100
committerNicholas Marriott <nicholas.marriott@gmail.com>2021-05-03 06:39:17 +0100
commit40467726e3a985f0d7c064c6dcf7121f3266ab70 (patch)
tree920705501106dd08f667d65bdda0699795f9451e /format.c
parent2e7ec8c0b91dc51e6e22b2f55cc4511610044673 (diff)
Fix warnings, from Jan Tache in GitHub issue 2692.
Diffstat (limited to 'format.c')
-rw-r--r--format.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/format.c b/format.c
index 5a12502e..c7960819 100644
--- a/format.c
+++ b/format.c
@@ -4199,7 +4199,7 @@ format_replace(struct format_expand_state *es, const char *key, size_t keylen,
value = xstrdup("0");
} else {
format_log(es, "search '%s' pane %%%u", new, wp->id);
- value = format_search(fm, wp, new);
+ value = format_search(search, wp, new);
}
free(new);
} else if (cmp != NULL) {