summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/screen-write.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2011-04-17 19:21:19 +0000
committernicm <nicm@openbsd.org>2011-04-17 19:21:19 +0000
commit9cdc57e05990282dfdf6514fd18cd821d57dcefc (patch)
treea34a1e4a302537f4c933d01a34e5880d7b5b47ac /usr.bin/tmux/screen-write.c
parentconstruct a better path to the swapdevice (as seen in pstat/swapctl output) (diff)
downloadwireguard-openbsd-9cdc57e05990282dfdf6514fd18cd821d57dcefc.tar.xz
wireguard-openbsd-9cdc57e05990282dfdf6514fd18cd821d57dcefc.zip
Fix character position check, from Tiago Resende.
Diffstat (limited to 'usr.bin/tmux/screen-write.c')
-rw-r--r--usr.bin/tmux/screen-write.c4
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. */