mirror of
https://github.com/tmate-io/tmate.git
synced 2025-08-09 21:57:37 +02:00
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.
This commit is contained in:
4
server.c
4
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 <nicm@users.sourceforge.net>
|
||||
@ -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);
|
||||
|
Reference in New Issue
Block a user