From 7219b4e63b48ce5a2a94aecd23eed1d094894bf1 Mon Sep 17 00:00:00 2001
From: mcmlxxix <>
Date: Fri, 5 Sep 2008 01:51:36 +0000
Subject: [PATCH] made input line clearing clear the width of the input line
 itself, not the width of the chat window

---
 exec/load/chateng.js | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/exec/load/chateng.js b/exec/load/chateng.js
index 3cbc44530b..16af43354b 100644
--- a/exec/load/chateng.js
+++ b/exec/load/chateng.js
@@ -104,12 +104,10 @@ function ChatEngine(root,name,log_)
 		{
 		//borrowed Deuce's feseditor.js
 		case '\x00':	/* CTRL-@ (NULL) */
-		case '\x01':	/* CTRL-A (Colour) */
 		case '\x02':	/* CTRL-B KEY_HOME */
 		case '\x03':	/* CTRL-C (Center Line) */
 		case '\x04':	/* CTRL-D (Quick Find in SyncEdit)*/
 		case '\x05':	/* CTRL-E KEY_END */
-		case '\x06':	/* CTRL-F KEY_RIGHT */
 		case '\x09':	/* CTRL-I TAB... ToDo expand to spaces */
 		case '\x0b':	/* CTRL-K */
 		case '\x0c':	/* CTRL-L (Insert Line) */
@@ -141,7 +139,7 @@ function ChatEngine(root,name,log_)
 			this.BackSpace();
 			break;
 		case '\r':
-			if(!this.fullscreen) ClearLine(this.columns,this.input_line.x,this.input_line.y);
+			if(!this.fullscreen) ClearLine(this.input_line.columns,this.input_line.x,this.input_line.y);
 			else 
 			{
 				console.left(this.buffer.length)
@@ -179,7 +177,7 @@ function ChatEngine(root,name,log_)
 	}
 	this.Buffer=function(key)
 	{
-		if(this.input_line)
+		if(!this.fullscreen)
 		{
 			if(this.buffer.length>=this.input_line.columns)
 			{
-- 
GitLab