mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 09:26:05 +00:00 
			
		
		
		
	When checking whether the region will scroll and the cursor position is thus
unsuitable for using CUD/CUU, check the current cursor position not the target position.
This commit is contained in:
		
							
								
								
									
										4
									
								
								tty.c
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								tty.c
									
									
									
									
									
								
							@@ -1057,14 +1057,14 @@ tty_cursor(struct tty *tty, u_int cx, u_int cy)
 | 
			
		||||
		 */
 | 
			
		||||
 | 
			
		||||
		/* One above. */
 | 
			
		||||
		if (cy != tty->rupper && 
 | 
			
		||||
		if (thisy != tty->rupper && 
 | 
			
		||||
		    cy == thisy - 1 && tty_term_has(term, TTYC_CUU1)) {
 | 
			
		||||
			tty_putcode(tty, TTYC_CUU1);
 | 
			
		||||
			goto out;
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		/* One below. */
 | 
			
		||||
		if (cy != tty->rlower &&
 | 
			
		||||
		if (thisy != tty->rlower &&
 | 
			
		||||
		    cy == thisy + 1 && tty_term_has(term, TTYC_CUD1)) {
 | 
			
		||||
			tty_putcode(tty, TTYC_CUD1);
 | 
			
		||||
			goto out;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user