From 53b83c983ace98ba2887f03e8753dbe9f18d3d71 Mon Sep 17 00:00:00 2001
From: deuce <>
Date: Tue, 17 Nov 2015 17:22:34 +0000
Subject: [PATCH] Don't modify the passed attribute in ansi() method.

---
 exec/dorkit/attribute.js | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/exec/dorkit/attribute.js b/exec/dorkit/attribute.js
index f43699f08a..d15f849e54 100644
--- a/exec/dorkit/attribute.js
+++ b/exec/dorkit/attribute.js
@@ -88,8 +88,7 @@ Attribute.prototype = {
 		if(curatr === undefined || (!(this.bright) && curatr.bright)
 				|| (!(this.blink) && curatr.blink) || this.value === 7) {
 			str += "0;";
-			if (curatr === undefined)
-				curatr = this.curatr;
+			curatr = this._curatr;
 			curatr.value = 7;
 		}
 		if(this.blink) {                     /* special attributes */
-- 
GitLab