aboutsummaryrefslogtreecommitdiff
path: root/server.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2009-06-24 22:49:56 +0000
committerNicholas Marriott <nicm@openbsd.org>2009-06-24 22:49:56 +0000
commit7e796dea035ed7028fc7188e65979725a24ff03d (patch)
tree2320aac0cebb0b6bf561a7d3a004622669ab174d /server.c
parent096cbf2ea558c0f66ee7bdaa8316e85c3e55ee69 (diff)
downloadrtmux-7e796dea035ed7028fc7188e65979725a24ff03d.tar.gz
rtmux-7e796dea035ed7028fc7188e65979725a24ff03d.tar.bz2
rtmux-7e796dea035ed7028fc7188e65979725a24ff03d.zip
Change find-window and monitor-content to use fnmatch(3). For convenience and
compatibility, *s are implicitly added at the start and end of the pattern. Also display the line number and the entire line in the results, and lose the nasty section_string function and the now empty util.c file. Initially from Tiago Cunha.
Diffstat (limited to 'server.c')
-rw-r--r--server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/server.c b/server.c
index ae2b071d..b8c80fb3 100644
--- a/server.c
+++ b/server.c
@@ -959,7 +959,7 @@ server_check_window_content(
return (0);
if (session_alert_has_window(s, w, WINDOW_CONTENT))
return (0);
- if ((found = window_pane_search(wp, ptr)) == NULL)
+ if ((found = window_pane_search(wp, ptr, NULL)) == NULL)
return (0);
session_alert_add(s, w, WINDOW_CONTENT);
xfree(found);