mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Add notify hooks for various events, the functions are currently empty
stubs but will be filled in for control mode later. From George Nachman.
This commit is contained in:
		@@ -244,6 +244,7 @@ cmd_new_session_exec(struct cmd *self, struct cmd_ctx *ctx)
 | 
			
		||||
			if (old_s != NULL)
 | 
			
		||||
				ctx->cmdclient->last_session = old_s;
 | 
			
		||||
			ctx->cmdclient->session = s;
 | 
			
		||||
			notify_attached_session_changed(ctx->cmdclient);
 | 
			
		||||
			session_update_activity(s);
 | 
			
		||||
			server_redraw_client(ctx->cmdclient);
 | 
			
		||||
		} else {
 | 
			
		||||
@@ -251,6 +252,7 @@ cmd_new_session_exec(struct cmd *self, struct cmd_ctx *ctx)
 | 
			
		||||
			if (old_s != NULL)
 | 
			
		||||
				ctx->curclient->last_session = old_s;
 | 
			
		||||
			ctx->curclient->session = s;
 | 
			
		||||
			notify_attached_session_changed(ctx->curclient);
 | 
			
		||||
			session_update_activity(s);
 | 
			
		||||
			server_redraw_client(ctx->curclient);
 | 
			
		||||
		}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user