mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Pass keys that aren't 0-9 on to normal key processing when display-panes
is active (restores previous behaviour).
This commit is contained in:
		@@ -204,7 +204,7 @@ cmd_display_panes_key(struct client *c, struct key_event *event)
 | 
				
			|||||||
	struct cmd_parse_result		*pr;
 | 
						struct cmd_parse_result		*pr;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (event->key < '0' || event->key > '9')
 | 
						if (event->key < '0' || event->key > '9')
 | 
				
			||||||
		return (1);
 | 
							return (-1);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	wp = window_pane_at_index(w, event->key - '0');
 | 
						wp = window_pane_at_index(w, event->key - '0');
 | 
				
			||||||
	if (wp == NULL)
 | 
						if (wp == NULL)
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1218,9 +1218,13 @@ server_client_handle_key(struct client *c, struct key_event *event)
 | 
				
			|||||||
	 * blocked so they need to be processed immediately rather than queued.
 | 
						 * blocked so they need to be processed immediately rather than queued.
 | 
				
			||||||
	 */
 | 
						 */
 | 
				
			||||||
	if ((~c->flags & CLIENT_READONLY) && c->overlay_key != NULL) {
 | 
						if ((~c->flags & CLIENT_READONLY) && c->overlay_key != NULL) {
 | 
				
			||||||
		if (c->overlay_key(c, event) != 0)
 | 
							switch (c->overlay_key(c, event)) {
 | 
				
			||||||
 | 
							case 0:
 | 
				
			||||||
 | 
								return (0);
 | 
				
			||||||
 | 
							case 1:
 | 
				
			||||||
			server_client_clear_overlay(c);
 | 
								server_client_clear_overlay(c);
 | 
				
			||||||
		return (0);
 | 
								return (0);
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	/*
 | 
						/*
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user