mirror of
https://github.com/nuintun/command-manager.git
synced 2025-06-13 16:19:00 +08:00
update files
This commit is contained in:
parent
a6a3a75e04
commit
a355526283
@ -699,9 +699,9 @@ TChar.prototype.getAttributes = function (){
|
|||||||
TChar.prototype.setAttributes = function (attributes){
|
TChar.prototype.setAttributes = function (attributes){
|
||||||
var attr = this.attr;
|
var attr = this.attr;
|
||||||
|
|
||||||
['bold', 'italic', 'underline', 'blink', 'inverse', 'conceal'].map(function (el, i){
|
['bold', 'italic', 'underline', 'blink', 'inverse', 'conceal'].map(function (key, i){
|
||||||
if (attributes[el] !== undefined) {
|
if (attributes[key] !== undefined) {
|
||||||
attr = (attributes[el]) ? attr | (2 << (15 + i)) : attr & ~(2 << (15 + i));
|
attr = (attributes[key]) ? attr | (2 << (15 + i)) : attr & ~(2 << (15 + i));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user