mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Merge branch 'obsd-master'
This commit is contained in:
		@@ -55,6 +55,10 @@ layout_set_lookup(const char *name)
 | 
			
		||||
	u_int	i;
 | 
			
		||||
	int	matched = -1;
 | 
			
		||||
 | 
			
		||||
	for (i = 0; i < nitems(layout_sets); i++) {
 | 
			
		||||
		if (strcmp(layout_sets[i].name, name) == 0)
 | 
			
		||||
			return (i);
 | 
			
		||||
	}
 | 
			
		||||
	for (i = 0; i < nitems(layout_sets); i++) {
 | 
			
		||||
		if (strncmp(layout_sets[i].name, name, strlen(name)) == 0) {
 | 
			
		||||
			if (matched != -1)	/* ambiguous */
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user