aboutsummaryrefslogtreecommitdiff
path: root/format.c
diff options
context:
space:
mode:
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) {