Merge branch 'obsd-master'

This commit is contained in:
Thomas Adam
2020-04-09 16:01:45 +01:00
16 changed files with 45 additions and 50 deletions

View File

@ -1223,7 +1223,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);