mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	When resizing the copy mode screen, don't allow it to end up with the
viewable position beyond the size of the history.
This commit is contained in:
		@@ -342,6 +342,8 @@ window_copy_resize(struct window_pane *wp, u_int sx, u_int sy)
 | 
			
		||||
		data->cy = sy - 1;
 | 
			
		||||
	if (data->cx > sx)
 | 
			
		||||
		data->cx = sx;
 | 
			
		||||
	if (data->oy > screen_hsize(data->backing))
 | 
			
		||||
		data->oy = screen_hsize(data->backing);
 | 
			
		||||
 | 
			
		||||
	window_copy_clear_selection(wp);
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user