diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2011-04-17 19:21:20 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2011-04-17 19:21:20 +0000 |
commit | a78dd7f67f6d475bceba7f1eb1a530162a1d6909 (patch) | |
tree | b0169297d45ed3fd2516c2fea8e4d738be775e86 /usr.bin/tmux | |
parent | 4b973a9bb794e9c70991a902b2697c6e724cc851 (diff) |
Fix character position check, from Tiago Resende.
Diffstat (limited to 'usr.bin/tmux')
-rw-r--r-- | usr.bin/tmux/screen-write.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/screen-write.c b/usr.bin/tmux/screen-write.c index db6de008f4a..1636fd14b59 100644 --- a/usr.bin/tmux/screen-write.c +++ b/usr.bin/tmux/screen-write.c @@ -1,4 +1,4 @@ -/* $OpenBSD: screen-write.c,v 1.48 2011/03/26 19:07:33 nicm Exp $ */ +/* $OpenBSD: screen-write.c,v 1.49 2011/04/17 19:21:19 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. */ |