mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 09:26:05 +00:00 
			
		
		
		
	Don't try to use \n across scroll region when doing \r\n either.
This commit is contained in:
		
							
								
								
									
										2
									
								
								tty.c
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								tty.c
									
									
									
									
									
								
							@@ -1004,7 +1004,7 @@ tty_cursor(struct tty *tty, u_int cx, u_int cy)
 | 
				
			|||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	/* Zero on the next line. */
 | 
						/* Zero on the next line. */
 | 
				
			||||||
	if (cx == 0 && cy == thisy + 1) {
 | 
						if (cx == 0 && cy == thisy + 1 && thisy != tty->rlower) {
 | 
				
			||||||
		tty_putc(tty, '\r');
 | 
							tty_putc(tty, '\r');
 | 
				
			||||||
		tty_putc(tty, '\n');
 | 
							tty_putc(tty, '\n');
 | 
				
			||||||
		goto out;
 | 
							goto out;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user