mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Check allow-set-title for APC as well.
This commit is contained in:
		
							
								
								
									
										4
									
								
								input.c
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								input.c
									
									
									
									
									
								
							@@ -2621,7 +2621,9 @@ input_exit_apc(struct input_ctx *ictx)
 | 
				
			|||||||
		return;
 | 
							return;
 | 
				
			||||||
	log_debug("%s: \"%s\"", __func__, ictx->input_buf);
 | 
						log_debug("%s: \"%s\"", __func__, ictx->input_buf);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (screen_set_title(sctx->s, ictx->input_buf) && wp != NULL) {
 | 
						if (wp != NULL &&
 | 
				
			||||||
 | 
						    options_get_number(wp->options, "allow-set-title") &&
 | 
				
			||||||
 | 
						    screen_set_title(sctx->s, ictx->input_buf)) {
 | 
				
			||||||
		notify_pane("pane-title-changed", wp);
 | 
							notify_pane("pane-title-changed", wp);
 | 
				
			||||||
		server_redraw_window_borders(wp->window);
 | 
							server_redraw_window_borders(wp->window);
 | 
				
			||||||
		server_status_window(wp->window);
 | 
							server_status_window(wp->window);
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										4
									
								
								tty.c
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								tty.c
									
									
									
									
									
								
							@@ -407,8 +407,8 @@ void
 | 
				
			|||||||
tty_repeat_requests(struct tty *tty, int force)
 | 
					tty_repeat_requests(struct tty *tty, int force)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	struct client	*c = tty->client;
 | 
						struct client	*c = tty->client;
 | 
				
			||||||
	time_t	t = time(NULL);
 | 
						time_t		 t = time(NULL);
 | 
				
			||||||
	u_int	n = t - tty->last_requests;
 | 
						u_int		 n = t - tty->last_requests;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (~tty->flags & TTY_STARTED)
 | 
						if (~tty->flags & TTY_STARTED)
 | 
				
			||||||
		return;
 | 
							return;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user