mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 09:26:05 +00:00 
			
		
		
		
	Correctly unzoom and redraw panes in switch-client.
This commit is contained in:
		@@ -113,8 +113,11 @@ cmd_switch_client_exec(struct cmd *self, struct cmdq_item *item)
 | 
				
			|||||||
		if (item->client == NULL)
 | 
							if (item->client == NULL)
 | 
				
			||||||
			return (CMD_RETURN_NORMAL);
 | 
								return (CMD_RETURN_NORMAL);
 | 
				
			||||||
		if (wl != NULL) {
 | 
							if (wl != NULL) {
 | 
				
			||||||
			if (wp != NULL)
 | 
								server_unzoom_window(wl->window);
 | 
				
			||||||
 | 
								if (wp != NULL) {
 | 
				
			||||||
 | 
									window_redraw_active_switch(wp->window, wp);
 | 
				
			||||||
				window_set_active_pane(wp->window, wp);
 | 
									window_set_active_pane(wp->window, wp);
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
			session_set_current(s, wl);
 | 
								session_set_current(s, wl);
 | 
				
			||||||
			cmd_find_from_session(&item->shared->current, s, 0);
 | 
								cmd_find_from_session(&item->shared->current, s, 0);
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user