mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Return 1 if name matches not 0, also fix some spaces.
This commit is contained in:
		@@ -238,7 +238,7 @@ window_buffer_search(__unused void *modedata, void *itemdata, const char *ss)
 | 
			
		||||
	if ((pb = paste_get_name(item->name)) == NULL)
 | 
			
		||||
		return (0);
 | 
			
		||||
	if (strstr(item->name, ss) != NULL)
 | 
			
		||||
		return (0);
 | 
			
		||||
		return (1);
 | 
			
		||||
	bufdata = paste_buffer_data(pb, &bufsize);
 | 
			
		||||
	return (memmem(bufdata, bufsize, ss, strlen(ss)) != NULL);
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user