Fixed issues with invert filter

This commit is contained in:
Devine Lu Linvega
2017-01-12 15:54:07 -07:00
parent a2fed4c21e
commit 695cb33dca
8 changed files with 24 additions and 4 deletions

View File

@@ -27,4 +27,22 @@ function Render(rune)
return this.collection[name].preview(cmd);
}
this.hint = function(cmd)
{
var input = cmd.content.join(" ");
var s = this.pad(input);
if(this.collection[input]){
for (i = 0; i < this.collection[input].parameters.length; i++) {
s += this.collection[input].parameters[i].name+" ";
}
}
else{
for (var key in this.collection){
s += key+" ";
}
}
return s;
}
}