mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 09:26:05 +00:00 
			
		
		
		
	Change the way the grid is stored, previously it was:
- a two-dimensional array of cells; - a two-dimensional array of utf8 data; - an array of line lengths. Now it is a single array of a new struct grid_line each of which represents a line and containts the length and an array of cells and an array of utf8 data. This will make it easier to add additional per-line members, such as flags.
This commit is contained in:
		@@ -537,7 +537,7 @@ window_copy_find_length(struct window_pane *wp, u_int py)
 | 
			
		||||
	 * width of the grid, and screen_write_copy treats them as spaces, so
 | 
			
		||||
	 * ignore them here too.
 | 
			
		||||
	 */
 | 
			
		||||
	px = wp->base.grid->size[py];
 | 
			
		||||
	px = wp->base.grid->linedata[py].cellsize;
 | 
			
		||||
	if (px > screen_size_x(&wp->base))
 | 
			
		||||
		px = screen_size_x(&wp->base);
 | 
			
		||||
	while (px > 0) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user