mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-03 16:46:18 +00:00 
			
		
		
		
	Set end position correctly, GitHub issue 2129 from Anindya Mukherjee.
This commit is contained in:
		@@ -1566,12 +1566,12 @@ window_copy_cmd_select_line(struct window_copy_cmd_state *cs)
 | 
			
		||||
	window_copy_cursor_start_of_line(wme);
 | 
			
		||||
	data->selrx = data->cx;
 | 
			
		||||
	data->selry = screen_hsize(data->backing) + data->cy - data->oy;
 | 
			
		||||
	data->endselrx = window_copy_find_length(wme, data->selry);
 | 
			
		||||
	data->endselry = data->selry;
 | 
			
		||||
	window_copy_start_selection(wme);
 | 
			
		||||
	for (; np > 1; np--)
 | 
			
		||||
		window_copy_cursor_down(wme, 0);
 | 
			
		||||
	window_copy_cursor_end_of_line(wme);
 | 
			
		||||
	data->endselrx = data->cx;
 | 
			
		||||
	data->endselry = screen_hsize(data->backing) + data->cy - data->oy;
 | 
			
		||||
 | 
			
		||||
	return (WINDOW_COPY_CMD_REDRAW);
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user