mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 01:34:18 +00:00 
			
		
		
		
	Sync OpenBSD patchset 1016:
Enforce history-limit option when clearing the screen, memory leak spotted by R I Pienaar.
This commit is contained in:
		@@ -94,8 +94,10 @@ grid_view_clear_history(struct grid *gd)
 | 
				
			|||||||
		return;
 | 
							return;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	/* Scroll the lines into the history. */
 | 
						/* Scroll the lines into the history. */
 | 
				
			||||||
	for (yy = 0; yy < last; yy++)
 | 
						for (yy = 0; yy < last; yy++) {
 | 
				
			||||||
 | 
							grid_collect_history(gd);
 | 
				
			||||||
		grid_scroll_history(gd);
 | 
							grid_scroll_history(gd);
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/* Clear area. */
 | 
					/* Clear area. */
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user