mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Scroll region reset homes the cursor, so start at 0,0 when drawing. Also don't set region after DECRC.
This commit is contained in:
		
							
								
								
									
										4
									
								
								input.c
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								input.c
									
									
									
									
									
								
							@@ -1,4 +1,4 @@
 | 
			
		||||
/* $Id: input.c,v 1.36 2007-11-23 22:51:13 nicm Exp $ */
 | 
			
		||||
/* $Id: input.c,v 1.37 2007-11-24 19:29:55 nicm Exp $ */
 | 
			
		||||
 | 
			
		||||
/*
 | 
			
		||||
 * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
 | 
			
		||||
@@ -484,8 +484,6 @@ input_handle_private_two(u_char ch, struct input_ctx *ictx)
 | 
			
		||||
		if (!screen_hidden(s)) {
 | 
			
		||||
			input_store_two(
 | 
			
		||||
			    ictx->b, CODE_ATTRIBUTES, s->attr, s->colr);
 | 
			
		||||
			input_store_two(ictx->b, CODE_SCROLLREGION,
 | 
			
		||||
			    s->rupper + 1, s->rlower + 1);
 | 
			
		||||
			input_store_two(
 | 
			
		||||
			    ictx->b, CODE_CURSORMOVE, s->cy + 1, s->cx + 1);
 | 
			
		||||
		}
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										7
									
								
								screen.c
									
									
									
									
									
								
							
							
						
						
									
										7
									
								
								screen.c
									
									
									
									
									
								
							@@ -1,4 +1,4 @@
 | 
			
		||||
/* $Id: screen.c,v 1.43 2007-11-24 17:58:45 nicm Exp $ */
 | 
			
		||||
/* $Id: screen.c,v 1.44 2007-11-24 19:29:56 nicm Exp $ */
 | 
			
		||||
 | 
			
		||||
/*
 | 
			
		||||
 * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
 | 
			
		||||
@@ -278,8 +278,9 @@ screen_draw_start(struct screen_draw_ctx *ctx,
 | 
			
		||||
	ctx->ox = ox;
 | 
			
		||||
	ctx->oy = oy;
 | 
			
		||||
 | 
			
		||||
	ctx->cx = s->cx;
 | 
			
		||||
	ctx->cy = s->cy;
 | 
			
		||||
	/* Resetting the scroll region homes the cursor so start at 0,0. */
 | 
			
		||||
	ctx->cx = 0;
 | 
			
		||||
	ctx->cy = 0;
 | 
			
		||||
 | 
			
		||||
	ctx->sel.flag = 0;
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user