mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Merge branch 'obsd-master'
This commit is contained in:
		@@ -540,7 +540,7 @@ server_client_handle_key(struct client *c, int key)
 | 
			
		||||
	struct window		*w;
 | 
			
		||||
	struct window_pane	*wp;
 | 
			
		||||
	struct timeval		 tv;
 | 
			
		||||
	struct key_table	*table = c->keytable;
 | 
			
		||||
	struct key_table	*table;
 | 
			
		||||
	struct key_binding	 bd_find, *bd;
 | 
			
		||||
	int			 xtimeout;
 | 
			
		||||
 | 
			
		||||
@@ -606,7 +606,7 @@ server_client_handle_key(struct client *c, int key)
 | 
			
		||||
retry:
 | 
			
		||||
	/* Try to see if there is a key binding in the current table. */
 | 
			
		||||
	bd_find.key = key;
 | 
			
		||||
	bd = RB_FIND(key_bindings, &table->key_bindings, &bd_find);
 | 
			
		||||
	bd = RB_FIND(key_bindings, &c->keytable->key_bindings, &bd_find);
 | 
			
		||||
	if (bd != NULL) {
 | 
			
		||||
		/*
 | 
			
		||||
		 * Key was matched in this table. If currently repeating but a
 | 
			
		||||
@@ -624,6 +624,7 @@ retry:
 | 
			
		||||
		 * Take a reference to this table to make sure the key binding
 | 
			
		||||
		 * doesn't disappear.
 | 
			
		||||
		 */
 | 
			
		||||
		table = c->keytable;
 | 
			
		||||
		table->references++;
 | 
			
		||||
 | 
			
		||||
		/*
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user