summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornicm <nicm>2020-04-09 13:49:21 +0000
committernicm <nicm>2020-04-09 13:49:21 +0000
commitc4d0089edb802763619724e405ac2715542969d5 (patch)
tree796e32c2929a68578ad238810a0e4ad5acf916f5
parent0e8710f507acda408e3daf1ad71b33997e126505 (diff)
Pass correct flags to fnmatch.
-rw-r--r--window.c2
1 files changed, 1 insertions, 1 deletions
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);