mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Merge branch 'obsd-master'
This commit is contained in:
		
							
								
								
									
										5
									
								
								tty.c
									
									
									
									
									
								
							
							
						
						
									
										5
									
								
								tty.c
									
									
									
									
									
								
							@@ -1609,7 +1609,8 @@ tty_cursor(struct tty *tty, u_int cx, u_int cy)
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	/* Zero on the next line. */
 | 
			
		||||
	if (cx == 0 && cy == thisy + 1 && thisy != tty->rlower) {
 | 
			
		||||
	if (cx == 0 && cy == thisy + 1 && thisy != tty->rlower &&
 | 
			
		||||
	    (!tty_use_margin(tty) || tty->rleft == 0)) {
 | 
			
		||||
		tty_putc(tty, '\r');
 | 
			
		||||
		tty_putc(tty, '\n');
 | 
			
		||||
		goto out;
 | 
			
		||||
@@ -1622,7 +1623,7 @@ tty_cursor(struct tty *tty, u_int cx, u_int cy)
 | 
			
		||||
		 */
 | 
			
		||||
 | 
			
		||||
		/* To left edge. */
 | 
			
		||||
		if (cx == 0) {
 | 
			
		||||
		if (cx == 0 && (!tty_use_margin(tty) || tty->rleft == 0)) {
 | 
			
		||||
			tty_putc(tty, '\r');
 | 
			
		||||
			goto out;
 | 
			
		||||
		}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user