Skip to content
Snippets Groups Projects
Commit 53b83c98 authored by deuce's avatar deuce
Browse files

Don't modify the passed attribute in ansi() method.

parent 0ce6c284
No related branches found
No related tags found
No related merge requests found
......@@ -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 */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment