mirror of
				https://github.com/tmux/tmux.git
				synced 2025-10-26 12:27:15 +00:00 
			
		
		
		
	Log missing keys when extended keys is on rather than fatal().
This commit is contained in:
		| @@ -330,7 +330,8 @@ static struct input_key_entry input_key_defaults[] = { | |||||||
| 	  .data = "\033[2;_~" | 	  .data = "\033[2;_~" | ||||||
| 	}, | 	}, | ||||||
| 	{ .key = KEYC_DC|KEYC_BUILD_MODIFIERS, | 	{ .key = KEYC_DC|KEYC_BUILD_MODIFIERS, | ||||||
| 	  .data = "\033[3;_~" } | 	  .data = "\033[3;_~" | ||||||
|  | 	} | ||||||
| }; | }; | ||||||
| static const key_code input_key_modifiers[] = { | static const key_code input_key_modifiers[] = { | ||||||
| 	0, | 	0, | ||||||
| @@ -557,7 +558,7 @@ input_key(struct screen *s, struct bufferevent *bev, key_code key) | |||||||
| 		modifier = '8'; | 		modifier = '8'; | ||||||
| 		break; | 		break; | ||||||
| 	default: | 	default: | ||||||
| 		fatalx("invalid key modifiers: %llx", key); | 		goto missing; | ||||||
| 	} | 	} | ||||||
| 	xsnprintf(tmp, sizeof tmp, "\033[%llu;%cu", outkey, modifier); | 	xsnprintf(tmp, sizeof tmp, "\033[%llu;%cu", outkey, modifier); | ||||||
| 	bufferevent_write(bev, tmp, strlen(tmp)); | 	bufferevent_write(bev, tmp, strlen(tmp)); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 nicm
					nicm