mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 09:44:18 +00:00 
			
		
		
		
	|PatchSet 890
|Date: 2011/04/17 20:21:19 |Author: nicm |Branch: HEAD |Tag: (none) |Log: |Fix character position check, from Tiago Resende.
This commit is contained in:
		@@ -1,4 +1,4 @@
 | 
			
		||||
/* $Id: screen-write.c,v 1.95 2011-03-24 17:03:29 micahcowan Exp $ */
 | 
			
		||||
/* $Id: screen-write.c,v 1.96 2011-04-18 21:06:49 nicm Exp $ */
 | 
			
		||||
 | 
			
		||||
/*
 | 
			
		||||
 * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
 | 
			
		||||
@@ -1048,7 +1048,7 @@ screen_write_cell(struct screen_write_ctx *ctx,
 | 
			
		||||
 | 
			
		||||
	/* Sanity checks. */
 | 
			
		||||
	if (((s->mode & MODE_WRAP) && s->cx > screen_size_x(s) - width)
 | 
			
		||||
	    || s->cy > screen_size_y(s) - width)
 | 
			
		||||
	    || s->cy > screen_size_y(s) - 1)
 | 
			
		||||
		return;
 | 
			
		||||
 | 
			
		||||
	/* Handle overwriting of UTF-8 characters. */
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user