mirror of
https://github.com/tmux/tmux.git
synced 2025-01-05 23:38:48 +00:00
Pass correct flags to fnmatch.
This commit is contained in:
parent
0e8710f507
commit
c4d0089edb
2
window.c
2
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);
|
||||
|
Loading…
Reference in New Issue
Block a user