diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2020-04-09 13:49:22 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2020-04-09 13:49:22 +0000 |
commit | 08cbf972268ed30e723eb3162587b6c9c59a7911 (patch) | |
tree | 7eed50d5153e265fab4680dae25aa688228e35c9 /usr.bin/tmux/window.c | |
parent | 9bc4b7ce122eedd1d01965671b20e67052a1e10e (diff) |
Pass correct flags to fnmatch.
Diffstat (limited to 'usr.bin/tmux/window.c')
-rw-r--r-- | usr.bin/tmux/window.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/window.c b/usr.bin/tmux/window.c index b964022d334..fff57abdfeb 100644 --- a/usr.bin/tmux/window.c +++ b/usr.bin/tmux/window.c @@ -1,4 +1,4 @@ -/* $OpenBSD: window.c,v 1.253 2020/04/06 17:51:34 nicm Exp $ */ +/* $OpenBSD: window.c,v 1.254 2020/04/09 13:49:21 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -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); |