mirror of
https://github.com/tmate-io/tmate.git
synced 2024-11-08 09:14:22 +01: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:
parent
65fc8ef43a
commit
6351940744
@ -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. */
|
||||
|
Loading…
Reference in New Issue
Block a user