[hackers] [st] Fixing a off-by-one error in the new border clearing code. || Christoph Lohmann

From: <hg_AT_suckless.org>
Date: Sat, 6 Oct 2012 20:55:02 +0200 (CEST)

changeset: 358:3ab75b8f7543
tag: tip
user: Christoph Lohmann <20h_AT_r-36.net>
date: Sat Oct 06 20:52:22 2012 +0200
files: st.c
description:
Fixing a off-by-one error in the new border clearing code.


diff -r f85525f8f636 -r 3ab75b8f7543 st.c
--- a/st.c Sat Oct 06 19:15:30 2012 +0200
+++ b/st.c Sat Oct 06 20:52:22 2012 +0200
_AT_@ -2355,7 +2355,7 @@
         }
         if(x + charlen >= term.col-1) {
                 xclear(winx + width, (y == 0)? 0 : winy, xw.w,
- winy + xw.ch + (y == term.row-1)? xw.h : 0);
+ (y == term.row-1)? xw.h : (winy + xw.ch));
         }
         if(y == 0)
                 xclear(winx, 0, winx + width, BORDER);
Received on Sat Oct 06 2012 - 20:55:02 CEST

This archive was generated by hypermail 2.3.0 : Sat Oct 06 2012 - 21:00:10 CEST