From c4d0089edb802763619724e405ac2715542969d5 Mon Sep 17 00:00:00 2001 From: nicm Date: Thu, 9 Apr 2020 13:49:21 +0000 Subject: [PATCH] Pass correct flags to fnmatch. --- window.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/window.c b/window.c index 4c53d91c..2169ede2 100644 --- a/window.c +++ b/window.c @@ -1213,7 +1213,7 @@ window_pane_search(struct window_pane *wp, const char *term, int regex, } log_debug("%s: %s", __func__, line); if (!regex) - found = (fnmatch(new, line, 0) == 0); + found = (fnmatch(new, line, flags) == 0); else found = (regexec(&r, line, 0, NULL, 0) == 0); free(line);