mirror of
				https://github.com/tmux/tmux.git
				synced 2025-10-26 12:27:15 +00:00 
			
		
		
		
	Don't include meta twice when working out the flags to output for
xterm-style keys - bit 3 is accepted on input but not on output. Also a style nit in the header.
This commit is contained in:
		
							
								
								
									
										2
									
								
								tmux.h
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								tmux.h
									
									
									
									
									
								
							| @@ -110,7 +110,7 @@ extern char   **environ; | |||||||
| #define KEYC_SHIFT 0x8000 | #define KEYC_SHIFT 0x8000 | ||||||
| #define KEYC_PREFIX 0x10000 | #define KEYC_PREFIX 0x10000 | ||||||
|  |  | ||||||
| /* Mask to obtain key w/o modifiers */ | /* Mask to obtain key w/o modifiers. */ | ||||||
| #define KEYC_MASK_MOD (KEYC_ESCAPE|KEYC_CTRL|KEYC_SHIFT|KEYC_PREFIX) | #define KEYC_MASK_MOD (KEYC_ESCAPE|KEYC_CTRL|KEYC_SHIFT|KEYC_PREFIX) | ||||||
| #define KEYC_MASK_KEY (~KEYC_MASK_MOD) | #define KEYC_MASK_KEY (~KEYC_MASK_MOD) | ||||||
|  |  | ||||||
|   | |||||||
| @@ -174,8 +174,6 @@ xterm_keys_lookup(int key) | |||||||
| 		modifiers += 2; | 		modifiers += 2; | ||||||
| 	if (key & KEYC_CTRL) | 	if (key & KEYC_CTRL) | ||||||
| 		modifiers += 4; | 		modifiers += 4; | ||||||
| 	if (key & KEYC_ESCAPE) |  | ||||||
| 		modifiers += 8; |  | ||||||
|  |  | ||||||
| 	/* | 	/* | ||||||
| 	 * If the key has no modifiers, return NULL and let it fall through to | 	 * If the key has no modifiers, return NULL and let it fall through to | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Nicholas Marriott
					Nicholas Marriott