Pass correct flags to fnmatch.

pull/2164/head
nicm 2020-04-09 13:49:21 +00:00
parent 0e8710f507
commit c4d0089edb
1 changed files with 1 additions and 1 deletions

View File

@ -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);