summaryrefslogtreecommitdiffstats
path: root/format.c
diff options
context:
space:
mode:
authornicm <nicm>2021-06-10 07:45:43 +0000
committernicm <nicm>2021-06-10 07:45:43 +0000
commit6c659494f5591ebba2ef91e6cfa6a24761c14915 (patch)
tree9526680400a115e9bfb22871c9eb50bfea29120a /format.c
parent02a6b39db73e55f9f30d46106c378ed4c70cb02b (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 3a1385b2..03c01dc4 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) {