diff options
author | nicm <nicm> | 2020-04-09 13:49:21 +0000 |
---|---|---|
committer | nicm <nicm> | 2020-04-09 13:49:21 +0000 |
commit | c4d0089edb802763619724e405ac2715542969d5 (patch) | |
tree | 796e32c2929a68578ad238810a0e4ad5acf916f5 /window.c | |
parent | 0e8710f507acda408e3daf1ad71b33997e126505 (diff) | |
download | rtmux-c4d0089edb802763619724e405ac2715542969d5.tar.gz rtmux-c4d0089edb802763619724e405ac2715542969d5.tar.bz2 rtmux-c4d0089edb802763619724e405ac2715542969d5.zip |
Pass correct flags to fnmatch.
Diffstat (limited to 'window.c')
-rw-r--r-- | window.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |