mirror of
				https://github.com/tmux/tmux.git
				synced 2025-10-26 12:27:15 +00:00 
			
		
		
		
	Continue and pass keys through if they are repeated keys, so that the
first key after a repeated key doesn't get lost.
This commit is contained in:
		| @@ -816,7 +816,7 @@ server_client_handle_key(struct client *c, key_code key) | |||||||
| 	struct timeval		 tv; | 	struct timeval		 tv; | ||||||
| 	struct key_table	*table, *first; | 	struct key_table	*table, *first; | ||||||
| 	struct key_binding	 bd_find, *bd; | 	struct key_binding	 bd_find, *bd; | ||||||
| 	int			 xtimeout; | 	int			 xtimeout, flags; | ||||||
| 	struct cmd_find_state	 fs; | 	struct cmd_find_state	 fs; | ||||||
|  |  | ||||||
| 	/* Check the client is good to accept input. */ | 	/* Check the client is good to accept input. */ | ||||||
| @@ -913,6 +913,7 @@ server_client_handle_key(struct client *c, key_code key) | |||||||
| 		server_status_client(c); | 		server_status_client(c); | ||||||
| 		return; | 		return; | ||||||
| 	} | 	} | ||||||
|  | 	flags = c->flags; | ||||||
|  |  | ||||||
| retry: | retry: | ||||||
| 	/* Log key table. */ | 	/* Log key table. */ | ||||||
| @@ -990,7 +991,7 @@ retry: | |||||||
| 	 * No match in the root table either. If this wasn't the first table | 	 * No match in the root table either. If this wasn't the first table | ||||||
| 	 * tried, don't pass the key to the pane. | 	 * tried, don't pass the key to the pane. | ||||||
| 	 */ | 	 */ | ||||||
| 	if (first != table) { | 	if (first != table && (~flags & CLIENT_REPEAT)) { | ||||||
| 		server_client_set_key_table(c, NULL); | 		server_client_set_key_table(c, NULL); | ||||||
| 		server_status_client(c); | 		server_status_client(c); | ||||||
| 		return; | 		return; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 nicm
					nicm