mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Fix a couple more places where the key flags need to be masked off.
This commit is contained in:
		@@ -339,7 +339,7 @@ key_string_lookup_key(key_code key, int with_flags)
 | 
			
		||||
 | 
			
		||||
	/* Try the key against the string table. */
 | 
			
		||||
	for (i = 0; i < nitems(key_string_table); i++) {
 | 
			
		||||
		if (key == key_string_table[i].key)
 | 
			
		||||
		if (key == (key_string_table[i].key & KEYC_MASK_KEY))
 | 
			
		||||
			break;
 | 
			
		||||
	}
 | 
			
		||||
	if (i != nitems(key_string_table)) {
 | 
			
		||||
@@ -359,7 +359,7 @@ key_string_lookup_key(key_code key, int with_flags)
 | 
			
		||||
 | 
			
		||||
	/* Invalid keys are errors. */
 | 
			
		||||
	if (key > 255) {
 | 
			
		||||
		snprintf(out, sizeof out, "Invalid#%llx", key);
 | 
			
		||||
		snprintf(out, sizeof out, "Invalid#%llx", saved);
 | 
			
		||||
		goto out;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user