From aed4d69ec0199b905d89ea1b3fe8ac57d0cc2a20 Mon Sep 17 00:00:00 2001
From: deuce <>
Date: Fri, 28 Apr 2006 06:38:31 +0000
Subject: [PATCH] Fix cleararea() was always clearing to the bottom of the
 screen for some reason.

---
 exec/lbshell.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/exec/lbshell.js b/exec/lbshell.js
index 2c0fa19345..b37b882593 100644
--- a/exec/lbshell.js
+++ b/exec/lbshell.js
@@ -2299,7 +2299,7 @@ function cleararea(xpos,ypos,width,height,eol_allowed)
 		bgxo=xpos-1;	/* zero-based */
 		bgyo=ypos-2;	/* zero-based and make allowance for top line (The top of BackGround is at line 2) */
 		bgw=width;
-		bgh=mtop-ypos;	/* Height is here to the message window */
+		bgh=height;
 		if(bgyo+bgh>BackGround.height)	/* Too high? */
 			bgh=BackGround.height-bgyo;
 		if(ypos+bgh > mtop)
-- 
GitLab