From f7a9eb46fc0c0be659912b0cf9c2e7d7ced86bf9 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Thu, 25 Jun 2009 16:04:24 +0000 Subject: 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. --- server.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server.c') diff --git a/server.c b/server.c index 779959f9..004f237a 100644 --- a/server.c +++ b/server.c @@ -1,4 +1,4 @@ -/* $OpenBSD: server.c,v 1.2 2009/06/24 17:36:15 nicm Exp $ */ +/* $OpenBSD: server.c,v 1.3 2009/06/24 22:49:56 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -973,7 +973,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); -- cgit