mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Merge branch 'obsd-master'
This commit is contained in:
		
							
								
								
									
										4
									
								
								tty.c
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								tty.c
									
									
									
									
									
								
							@@ -1905,10 +1905,10 @@ tty_set_selection(struct tty *tty, const char *buf, size_t len)
 | 
			
		||||
	char	*encoded;
 | 
			
		||||
	size_t	 size;
 | 
			
		||||
 | 
			
		||||
	if (!tty_term_has(tty->term, TTYC_MS))
 | 
			
		||||
		return;
 | 
			
		||||
	if (~tty->flags & TTY_STARTED)
 | 
			
		||||
		return;
 | 
			
		||||
	if (!tty_term_has(tty->term, TTYC_MS))
 | 
			
		||||
		return;
 | 
			
		||||
 | 
			
		||||
	size = 4 * ((len + 2) / 3) + 1; /* storage for base64 */
 | 
			
		||||
	encoded = xmalloc(size);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user