mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Limit the history to hlimit not hlimit - 1. This makes a history-limit setting
of 0 work as expected.
This commit is contained in:
		
							
								
								
									
										2
									
								
								grid.c
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								grid.c
									
									
									
									
									
								
							@@ -172,7 +172,7 @@ grid_scroll_line(struct grid *gd)
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
 	GRID_DEBUG(gd, "");
 | 
					 	GRID_DEBUG(gd, "");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (gd->hsize >= gd->hlimit - 1) {
 | 
						if (gd->hsize >= gd->hlimit) {
 | 
				
			||||||
		/* If the limit is hit, free the bottom 10% and shift up. */
 | 
							/* If the limit is hit, free the bottom 10% and shift up. */
 | 
				
			||||||
		yy = gd->hlimit / 10;
 | 
							yy = gd->hlimit / 10;
 | 
				
			||||||
		if (yy < 1)
 | 
							if (yy < 1)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user