mirror of
				https://github.com/tmux/tmux.git
				synced 2025-10-26 12:27:15 +00:00 
			
		
		
		
	Tweak how much we expand lines by.
This commit is contained in:
		
							
								
								
									
										9
									
								
								grid.c
									
									
									
									
									
								
							
							
						
						
									
										9
									
								
								grid.c
									
									
									
									
									
								
							| @@ -292,11 +292,12 @@ grid_expand_line(struct grid *gd, u_int py, u_int sx, u_int bg) | |||||||
| 	if (sx <= gl->cellsize) | 	if (sx <= gl->cellsize) | ||||||
| 		return; | 		return; | ||||||
|  |  | ||||||
| 	if (sx < gd->sx) { | 	if (sx < gd->sx / 4) | ||||||
| 		sx *= 2; | 		sx = gd->sx / 4; | ||||||
| 		if (sx > gd->sx) | 	else if (sx < gd->sx / 2) | ||||||
|  | 		sx = gd->sx / 2; | ||||||
|  | 	else | ||||||
| 		sx = gd->sx; | 		sx = gd->sx; | ||||||
| 	} |  | ||||||
|  |  | ||||||
| 	gl->celldata = xreallocarray(gl->celldata, sx, sizeof *gl->celldata); | 	gl->celldata = xreallocarray(gl->celldata, sx, sizeof *gl->celldata); | ||||||
| 	for (xx = gl->cellsize; xx < sx; xx++) | 	for (xx = gl->cellsize; xx < sx; xx++) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 nicm
					nicm