mirror of
				https://github.com/tmux/tmux.git
				synced 2025-10-26 12:27:15 +00:00 
			
		
		
		
	Client could be NULL in select-window (for example in .tmux.conf), do
not set latest session if so. GitHub issue 2429 from Han Boetes.
This commit is contained in:
		@@ -142,7 +142,7 @@ cmd_select_window_exec(struct cmd *self, struct cmdq_item *item)
 | 
			
		||||
		}
 | 
			
		||||
		cmdq_insert_hook(s, item, current, "after-select-window");
 | 
			
		||||
	}
 | 
			
		||||
	if (c->session != NULL)
 | 
			
		||||
	if (c != NULL && c->session != NULL)
 | 
			
		||||
		s->curw->window->latest = c;
 | 
			
		||||
	recalculate_sizes();
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user