mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Somehow missed these bits in last commit.
This commit is contained in:
		
							
								
								
									
										8
									
								
								status.c
									
									
									
									
									
								
							
							
						
						
									
										8
									
								
								status.c
									
									
									
									
									
								
							@@ -1293,6 +1293,7 @@ status_prompt_complete_list(u_int *size, const char *s)
 | 
			
		||||
	size_t					  slen = strlen(s), valuelen;
 | 
			
		||||
	struct options_entry			 *o;
 | 
			
		||||
	struct options_array_item		 *a;
 | 
			
		||||
	union options_value			 *ov;
 | 
			
		||||
	const char				 *layouts[] = {
 | 
			
		||||
		"even-horizontal", "even-vertical", "main-horizontal",
 | 
			
		||||
		"main-vertical", "tiled", NULL
 | 
			
		||||
@@ -1321,10 +1322,13 @@ status_prompt_complete_list(u_int *size, const char *s)
 | 
			
		||||
	if (o != NULL) {
 | 
			
		||||
		a = options_array_first(o);
 | 
			
		||||
		while (a != NULL) {
 | 
			
		||||
			value = options_array_item_value(a);;
 | 
			
		||||
			if (value == NULL || (cp = strchr(value, '=')) == NULL)
 | 
			
		||||
			ov = options_array_item_value(a);
 | 
			
		||||
			if (ov == NULL)
 | 
			
		||||
				goto next;
 | 
			
		||||
 | 
			
		||||
			value = ov->string;
 | 
			
		||||
			if ((cp = strchr(value, '=')) == NULL)
 | 
			
		||||
			    goto next;
 | 
			
		||||
			valuelen = cp - value;
 | 
			
		||||
			if (slen > valuelen || strncmp(value, s, slen) != 0)
 | 
			
		||||
				goto next;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user