mirror of
				https://github.com/tmux/tmux.git
				synced 2025-10-26 12:27:15 +00:00 
			
		
		
		
	Merge branch 'obsd-master'
This commit is contained in:
		| @@ -158,6 +158,9 @@ cmd_attach_session(struct cmdq_item *item, const char *tflag, int dflag, | |||||||
| 		c->flags |= CLIENT_ATTACHED; | 		c->flags |= CLIENT_ATTACHED; | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
|  | 	if (cfg_finished) | ||||||
|  | 		cfg_show_causes(s); | ||||||
|  |  | ||||||
| 	return (CMD_RETURN_NORMAL); | 	return (CMD_RETURN_NORMAL); | ||||||
| } | } | ||||||
|  |  | ||||||
|   | |||||||
| @@ -333,13 +333,6 @@ cmd_new_session_exec(struct cmd *self, struct cmdq_item *item) | |||||||
| 			server_client_set_key_table(c, NULL); | 			server_client_set_key_table(c, NULL); | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
| 	/* |  | ||||||
| 	 * If there are still configuration file errors to display, put the new |  | ||||||
| 	 * session's current window into view mode and display them now. |  | ||||||
| 	 */ |  | ||||||
| 	if (cfg_finished) |  | ||||||
| 		cfg_show_causes(s); |  | ||||||
|  |  | ||||||
| 	/* Print if requested. */ | 	/* Print if requested. */ | ||||||
| 	if (args_has(args, 'P')) { | 	if (args_has(args, 'P')) { | ||||||
| 		if ((template = args_get(args, 'F')) == NULL) | 		if ((template = args_get(args, 'F')) == NULL) | ||||||
| @@ -357,6 +350,9 @@ cmd_new_session_exec(struct cmd *self, struct cmdq_item *item) | |||||||
| 	cmd_find_from_session(&fs, s, 0); | 	cmd_find_from_session(&fs, s, 0); | ||||||
| 	cmdq_insert_hook(s, item, &fs, "after-new-session"); | 	cmdq_insert_hook(s, item, &fs, "after-new-session"); | ||||||
|  |  | ||||||
|  | 	if (cfg_finished) | ||||||
|  | 		cfg_show_causes(s); | ||||||
|  |  | ||||||
| 	if (sc.argv != NULL) | 	if (sc.argv != NULL) | ||||||
| 		cmd_free_argv(sc.argc, sc.argv); | 		cmd_free_argv(sc.argc, sc.argv); | ||||||
| 	free(cwd); | 	free(cwd); | ||||||
|   | |||||||
| @@ -775,7 +775,6 @@ control_start(struct client *c) | |||||||
|  |  | ||||||
| 	cs->read_event = bufferevent_new(c->fd, control_read_callback, | 	cs->read_event = bufferevent_new(c->fd, control_read_callback, | ||||||
| 	    control_write_callback, control_error_callback, c); | 	    control_write_callback, control_error_callback, c); | ||||||
| 	bufferevent_enable(cs->read_event, EV_READ); |  | ||||||
|  |  | ||||||
| 	if (c->flags & CLIENT_CONTROLCONTROL) | 	if (c->flags & CLIENT_CONTROLCONTROL) | ||||||
| 		cs->write_event = cs->read_event; | 		cs->write_event = cs->read_event; | ||||||
| @@ -792,6 +791,13 @@ control_start(struct client *c) | |||||||
| 	} | 	} | ||||||
| } | } | ||||||
|  |  | ||||||
|  | /* Control client ready. */ | ||||||
|  | void | ||||||
|  | control_ready(struct client *c) | ||||||
|  | { | ||||||
|  | 	bufferevent_enable(c->control_state->read_event, EV_READ); | ||||||
|  | } | ||||||
|  |  | ||||||
| /* Discard all output for a client. */ | /* Discard all output for a client. */ | ||||||
| void | void | ||||||
| control_discard(struct client *c) | control_discard(struct client *c) | ||||||
|   | |||||||
| @@ -2788,8 +2788,11 @@ server_client_command_done(struct cmdq_item *item, __unused void *data) | |||||||
|  |  | ||||||
| 	if (~c->flags & CLIENT_ATTACHED) | 	if (~c->flags & CLIENT_ATTACHED) | ||||||
| 		c->flags |= CLIENT_EXIT; | 		c->flags |= CLIENT_EXIT; | ||||||
| 	else if (~c->flags & CLIENT_EXIT) | 	else if (~c->flags & CLIENT_EXIT) { | ||||||
|  | 		if (c->flags & CLIENT_CONTROL) | ||||||
|  | 			control_ready(c); | ||||||
| 		tty_send_requests(&c->tty); | 		tty_send_requests(&c->tty); | ||||||
|  | 	} | ||||||
| 	return (CMD_RETURN_NORMAL); | 	return (CMD_RETURN_NORMAL); | ||||||
| } | } | ||||||
|  |  | ||||||
|   | |||||||
							
								
								
									
										12
									
								
								tmux.1
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								tmux.1
									
									
									
									
									
								
							| @@ -2115,9 +2115,11 @@ is not given, "detach-client -t '%%'" is used. | |||||||
| specifies the initial sort field: one of | specifies the initial sort field: one of | ||||||
| .Ql name , | .Ql name , | ||||||
| .Ql size , | .Ql size , | ||||||
| .Ql creation , | .Ql creation | ||||||
|  | (time), | ||||||
| or | or | ||||||
| .Ql activity . | .Ql activity | ||||||
|  | (time). | ||||||
| .Fl r | .Fl r | ||||||
| reverses the sort order. | reverses the sort order. | ||||||
| .Fl f | .Fl f | ||||||
| @@ -2199,7 +2201,8 @@ specifies the initial sort field: one of | |||||||
| .Ql index , | .Ql index , | ||||||
| .Ql name , | .Ql name , | ||||||
| or | or | ||||||
| .Ql time . | .Ql time | ||||||
|  | (activity). | ||||||
| .Fl r | .Fl r | ||||||
| reverses the sort order. | reverses the sort order. | ||||||
| .Fl f | .Fl f | ||||||
| @@ -6110,7 +6113,8 @@ is not given, "paste-buffer -b '%%'" is used. | |||||||
| .Pp | .Pp | ||||||
| .Fl O | .Fl O | ||||||
| specifies the initial sort field: one of | specifies the initial sort field: one of | ||||||
| .Ql time , | .Ql time | ||||||
|  | (creation), | ||||||
| .Ql name | .Ql name | ||||||
| or | or | ||||||
| .Ql size . | .Ql size . | ||||||
|   | |||||||
							
								
								
									
										1
									
								
								tmux.h
									
									
									
									
									
								
							
							
						
						
									
										1
									
								
								tmux.h
									
									
									
									
									
								
							| @@ -3136,6 +3136,7 @@ char	*parse_window_name(const char *); | |||||||
| /* control.c */ | /* control.c */ | ||||||
| void	control_discard(struct client *); | void	control_discard(struct client *); | ||||||
| void	control_start(struct client *); | void	control_start(struct client *); | ||||||
|  | void	control_ready(struct client *); | ||||||
| void	control_stop(struct client *); | void	control_stop(struct client *); | ||||||
| void	control_set_pane_on(struct client *, struct window_pane *); | void	control_set_pane_on(struct client *, struct window_pane *); | ||||||
| void	control_set_pane_off(struct client *, struct window_pane *); | void	control_set_pane_off(struct client *, struct window_pane *); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Thomas Adam
					Thomas Adam