mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-03 16:46:18 +00:00 
			
		
		
		
	Correct client_prefix so it returns 1 if in prefix, not 0.
This commit is contained in:
		
							
								
								
									
										4
									
								
								format.c
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								format.c
									
									
									
									
									
								
							@@ -1319,8 +1319,8 @@ format_cb_client_prefix(struct format_tree *ft)
 | 
				
			|||||||
	if (ft->c != NULL) {
 | 
						if (ft->c != NULL) {
 | 
				
			||||||
		name = server_client_get_key_table(ft->c);
 | 
							name = server_client_get_key_table(ft->c);
 | 
				
			||||||
		if (strcmp(ft->c->keytable->name, name) == 0)
 | 
							if (strcmp(ft->c->keytable->name, name) == 0)
 | 
				
			||||||
			return (xstrdup("1"));
 | 
								return (xstrdup("0"));
 | 
				
			||||||
		return (xstrdup("0"));
 | 
							return (xstrdup("1"));
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	return (NULL);
 | 
						return (NULL);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user