mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-03 16:46:18 +00:00 
			
		
		
		
	Change new-session -A without a session name (that is, no -s option
also) to attach to the best existing session like attach-session rather than creating a new one.
This commit is contained in:
		
							
								
								
									
										2
									
								
								input.c
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								input.c
									
									
									
									
									
								
							@@ -876,7 +876,7 @@ input_set_state(struct window_pane *wp, const struct input_transition *itr)
 | 
			
		||||
void
 | 
			
		||||
input_parse(struct window_pane *wp)
 | 
			
		||||
{
 | 
			
		||||
	struct evbuffer		*evb = wp->event->input;
 | 
			
		||||
	struct evbuffer	*evb = wp->event->input;
 | 
			
		||||
 | 
			
		||||
	input_parse_buffer(wp, EVBUFFER_DATA(evb), EVBUFFER_LENGTH(evb));
 | 
			
		||||
	evbuffer_drain(evb, EVBUFFER_LENGTH(evb));
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user