mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Add 'e' key in buffer mode to open the buffer in an editor.
This commit is contained in:
		
							
								
								
									
										9
									
								
								paste.c
									
									
									
									
									
								
							
							
						
						
									
										9
									
								
								paste.c
									
									
									
									
									
								
							@@ -297,6 +297,15 @@ paste_set(char *data, size_t size, const char *name, char **cause)
 | 
			
		||||
	return (0);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/* Set paste data without otherwise changing it. */
 | 
			
		||||
void
 | 
			
		||||
paste_replace(struct paste_buffer *pb, char *data, size_t size)
 | 
			
		||||
{
 | 
			
		||||
	free(pb->data);
 | 
			
		||||
	pb->data = data;
 | 
			
		||||
	pb->size = size;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/* Convert start of buffer into a nice string. */
 | 
			
		||||
char *
 | 
			
		||||
paste_make_sample(struct paste_buffer *pb)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user