mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 09:26:05 +00:00 
			
		
		
		
	Scroll the right number of lines off the region when clearing.
This commit is contained in:
		
							
								
								
									
										4
									
								
								tty.c
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								tty.c
									
									
									
									
									
								
							@@ -838,7 +838,7 @@ tty_clear_area(struct tty *tty, const struct window_pane *wp, u_int py,
 | 
			
		||||
		    tty_term_has(tty->term, TTYC_INDN)) {
 | 
			
		||||
			tty_region(tty, py, py + ny - 1);
 | 
			
		||||
			tty_margin_off(tty);
 | 
			
		||||
			tty_putcode1(tty, TTYC_INDN, ny);
 | 
			
		||||
			tty_putcode1(tty, TTYC_INDN, ny - 1);
 | 
			
		||||
			return;
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
@@ -853,7 +853,7 @@ tty_clear_area(struct tty *tty, const struct window_pane *wp, u_int py,
 | 
			
		||||
		    tty_term_has(tty->term, TTYC_INDN)) {
 | 
			
		||||
			tty_region(tty, py, py + ny - 1);
 | 
			
		||||
			tty_margin(tty, px, px + nx - 1);
 | 
			
		||||
			tty_putcode1(tty, TTYC_INDN, ny);
 | 
			
		||||
			tty_putcode1(tty, TTYC_INDN, ny - 1);
 | 
			
		||||
			return;
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user