mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 09:26:05 +00: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. 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.
This commit is contained in:
		
							
								
								
									
										2
									
								
								server.c
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								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);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user