From 52779b0ed60668b7addfdee818aaa007c8d962c3 Mon Sep 17 00:00:00 2001
From: mcmlxxix <>
Date: Tue, 5 Mar 2013 19:32:58 +0000
Subject: [PATCH] use frame attributes for "normal" text input, send inputline
 attributes property with frame.write (to retain "normal" attributes during
 backspace)

---
 exec/load/inputline.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/exec/load/inputline.js b/exec/load/inputline.js
index 23ac297ebf..e6fd3bf98c 100644
--- a/exec/load/inputline.js
+++ b/exec/load/inputline.js
@@ -63,11 +63,11 @@ function InputLine(frame) {
 		}
 	});
 	this.__defineGetter__("attr",function() {
-		return properties.frame.attr;
+		return properties.attr;
 	});
 	this.__defineSetter__("attr",function(attr) {
-		if(attr >= 0 && attr < 512)
-			properties.frame.attr = Number(attr);
+		if(!isNaN(attr))
+			properties.attr = Number(attr);
 	});
 	this.__defineGetter__("cursor_attr",function() {
 		return settings.cursor_attr;
-- 
GitLab