Fixed broken auto completion in CLI

This commit is contained in:
jos 2014-08-02 22:21:34 +02:00
parent 2edb462615
commit 72e9bcf6ba

View File

@ -106,7 +106,7 @@ function completer (text) {
for (var n in Unit.UNITS) {
if (Unit.UNITS.hasOwnProperty(n)) {
if (n.indexOf(unitKeyword) == 0 &&
Unit.isPlainUnit(prefix + n)) {
Unit.isValuelessUnit(prefix + n)) {
matches.push(prefix + n);
}
}