mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Fix history-bottom to use the right line when working out the length.
This commit is contained in:
		@@ -1055,14 +1055,15 @@ window_copy_cmd_history_bottom(struct window_copy_cmd_state *cs)
 | 
			
		||||
{
 | 
			
		||||
	struct window_mode_entry	*wme = cs->wme;
 | 
			
		||||
	struct window_copy_mode_data	*data = wme->data;
 | 
			
		||||
	struct screen			*s = data->backing;
 | 
			
		||||
	u_int				 oy;
 | 
			
		||||
 | 
			
		||||
	oy = screen_hsize(data->backing) + data->cy - data->oy;
 | 
			
		||||
	oy = screen_hsize(s) + data->cy - data->oy;
 | 
			
		||||
	if (data->lineflag == LINE_SEL_RIGHT_LEFT && oy == data->endsely)
 | 
			
		||||
		window_copy_other_end(wme);
 | 
			
		||||
 | 
			
		||||
	data->cy = screen_size_y(&data->screen) - 1;
 | 
			
		||||
	data->cx = window_copy_find_length(wme, data->cy);
 | 
			
		||||
	data->cx = window_copy_find_length(wme, screen_hsize(s) + data->cy);
 | 
			
		||||
	data->oy = 0;
 | 
			
		||||
 | 
			
		||||
	if (data->searchmark != NULL && !data->timeout)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user