diff options
author | 2020-04-09 13:49:21 +0000 | |
---|---|---|
committer | 2020-04-09 13:49:21 +0000 | |
commit | af7fb06a7fa7913596046e2d776530af29ea5ff4 (patch) | |
tree | 84afade8c30aaed4ccb6632a3fc6c97c2a9f54fc | |
parent | Wait until the initial command sequence is done before sending a device (diff) | |
download | wireguard-openbsd-af7fb06a7fa7913596046e2d776530af29ea5ff4.tar.xz wireguard-openbsd-af7fb06a7fa7913596046e2d776530af29ea5ff4.zip |
Pass correct flags to fnmatch.
-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); |