mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	- New window option monitor-content to search for a string in a window, and
highlight the status line if it matches. - To make this possible, the function cmd_find_window_search from cmd-find-window.c had to be moved to window.c and renamed window_pane_search. - While there use three new functions in server.c to check for bell, activity, and content, to avoid too much nesting.
This commit is contained in:
		@@ -1,4 +1,4 @@
 | 
			
		||||
/* $Id: session.c,v 1.56 2009-05-04 17:58:27 nicm Exp $ */
 | 
			
		||||
/* $Id: session.c,v 1.57 2009-05-19 13:32:55 tcunha Exp $ */
 | 
			
		||||
 | 
			
		||||
/*
 | 
			
		||||
 * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
 | 
			
		||||
@@ -266,6 +266,8 @@ session_next_activity(struct session *s, struct winlink *wl)
 | 
			
		||||
			break;
 | 
			
		||||
		if (session_alert_has(s, wl, WINDOW_ACTIVITY))
 | 
			
		||||
			break;
 | 
			
		||||
		if (session_alert_has(s, wl, WINDOW_CONTENT))
 | 
			
		||||
			break;
 | 
			
		||||
		wl = winlink_next(&s->windows, wl);
 | 
			
		||||
	}
 | 
			
		||||
	return (wl);
 | 
			
		||||
@@ -305,6 +307,8 @@ session_previous_activity(struct session *s, struct winlink *wl)
 | 
			
		||||
			break;
 | 
			
		||||
		if (session_alert_has(s, wl, WINDOW_ACTIVITY))
 | 
			
		||||
			break;
 | 
			
		||||
		if (session_alert_has(s, wl, WINDOW_CONTENT))
 | 
			
		||||
			break;
 | 
			
		||||
		wl = winlink_previous(&s->windows, wl);
 | 
			
		||||
	}
 | 
			
		||||
	return (wl);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user