mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 01:34:18 +00:00 
			
		
		
		
	Redraw position indicator regardless.
This commit is contained in:
		@@ -1,4 +1,4 @@
 | 
			
		||||
/* $Id: window-more.c,v 1.8 2007-12-06 21:42:00 nicm Exp $ */
 | 
			
		||||
/* $Id: window-more.c,v 1.9 2007-12-07 09:26:56 nicm Exp $ */
 | 
			
		||||
 | 
			
		||||
/*
 | 
			
		||||
 * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
 | 
			
		||||
@@ -60,14 +60,15 @@ window_more_vadd(struct window *w, const char *fmt, va_list ap)
 | 
			
		||||
	xvasprintf(&msg, fmt, ap);
 | 
			
		||||
	ARRAY_ADD(&data->list, msg);
 | 
			
		||||
 | 
			
		||||
	screen_write_start_window(&ctx, w);
 | 
			
		||||
	size = ARRAY_LENGTH(&data->list) - 1;
 | 
			
		||||
	if (size >= data->top && size <= data->top + screen_last_y(s)) {
 | 
			
		||||
		screen_write_start_window(&ctx, w);
 | 
			
		||||
		window_more_write_line(w, &ctx, size - data->top);
 | 
			
		||||
		if (size != data->top)
 | 
			
		||||
			window_more_write_line(w, &ctx, 0);
 | 
			
		||||
	} else
 | 
			
		||||
		window_more_write_line(w, &ctx, 0);
 | 
			
		||||
	screen_write_stop(&ctx);
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user