mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Instead of using something sort of similar for both newline checks, use
something the same. Doesn't fix the bug I'm looking for though :-/.
This commit is contained in:
		
							
								
								
									
										5
									
								
								tty.c
									
									
									
									
									
								
							
							
						
						
									
										5
									
								
								tty.c
									
									
									
									
									
								
							@@ -461,8 +461,9 @@ tty_draw_line(struct tty *tty, struct screen *s, u_int py, u_int ox, u_int oy)
 | 
			
		||||
	gl = NULL;
 | 
			
		||||
	if (py != 0)
 | 
			
		||||
		gl = &s->grid->linedata[s->grid->hsize + py - 1];
 | 
			
		||||
	if (ox != 0 || (gl != NULL && !(gl->flags & GRID_LINE_WRAPPED)) ||
 | 
			
		||||
	    tty->cy != oy + py - 1 || tty->cx < tty->sx)
 | 
			
		||||
	if (oy + py == 0 || (gl != NULL && !(gl->flags & GRID_LINE_WRAPPED)) ||
 | 
			
		||||
	    tty->cx < tty->sx || ox != 0 ||
 | 
			
		||||
	    (oy + py != tty->cy + 1 && tty->cy != s->rlower + oy))
 | 
			
		||||
		tty_cursor(tty, ox, oy + py);
 | 
			
		||||
 | 
			
		||||
	for (i = 0; i < sx; i++) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user