From 1f3e115a763fa65d116af8b5e1118d5b51939977 Mon Sep 17 00:00:00 2001
From: deuce <>
Date: Fri, 6 Feb 2009 08:08:31 +0000
Subject: [PATCH] Fix check for cterm window beting the same size as the
 current window.

---
 src/conio/cterm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/conio/cterm.c b/src/conio/cterm.c
index e8af3c3bb9..9a18aa8bd2 100644
--- a/src/conio/cterm.c
+++ b/src/conio/cterm.c
@@ -1325,7 +1325,7 @@ char *cterm_write(unsigned char *buf, int buflen, char *retbuf, size_t retsize,
 	if(retbuf!=NULL)
 		retbuf[0]=0;
 	gettextinfo(&ti);
-	if(ti.winleft != cterm.x || ti.wintop != cterm.y || ti.winright != cterm.x+cterm.width-1 || ti.winleft != cterm.y+cterm.height-1)
+	if(ti.winleft != cterm.x || ti.wintop != cterm.y || ti.winright != cterm.x+cterm.width-1 || ti.winbottom != cterm.y+cterm.height-1)
 		window(cterm.x,cterm.y,cterm.x+cterm.width-1,cterm.y+cterm.height-1);
 	gotoxy(cterm.xpos,cterm.ypos);
 	textattr(cterm.attr);
-- 
GitLab