mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 01:34:18 +00:00 
			
		
		
		
	Sync OpenBSD patchset 516:
Clear to the end of the screen from the right starting point when drawing line-by-line (in panes or if ed not supported). Fixes problem spotted by Frank Terbeck.
This commit is contained in:
		
							
								
								
									
										4
									
								
								tty.c
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								tty.c
									
									
									
									
									
								
							@@ -1,4 +1,4 @@
 | 
				
			|||||||
/* $Id: tty.c,v 1.171 2009-11-08 23:26:56 tcunha Exp $ */
 | 
					/* $Id: tty.c,v 1.172 2009-11-08 23:34:47 tcunha Exp $ */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/*
 | 
					/*
 | 
				
			||||||
 * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
 | 
					 * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
 | 
				
			||||||
@@ -789,7 +789,7 @@ tty_cmd_clearendofscreen(struct tty *tty, const struct tty_ctx *ctx)
 | 
				
			|||||||
	} else {
 | 
						} else {
 | 
				
			||||||
		for (i = ctx->ocx; i < screen_size_x(s); i++)
 | 
							for (i = ctx->ocx; i < screen_size_x(s); i++)
 | 
				
			||||||
			tty_putc(tty, ' ');
 | 
								tty_putc(tty, ' ');
 | 
				
			||||||
		for (j = ctx->ocy; j < screen_size_y(s); j++) {
 | 
							for (j = ctx->ocy + 1; j < screen_size_y(s); j++) {
 | 
				
			||||||
			tty_cursor_pane(tty, ctx, 0, j);
 | 
								tty_cursor_pane(tty, ctx, 0, j);
 | 
				
			||||||
			for (i = 0; i < screen_size_x(s); i++)
 | 
								for (i = 0; i < screen_size_x(s); i++)
 | 
				
			||||||
				tty_putc(tty, ' ');
 | 
									tty_putc(tty, ' ');
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user