浏览代码

handle alias

Nicolas Cannasse 3 年之前
父节点
当前提交
31bc59642e
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      h2d/Console.hx

+ 3 - 0
h2d/Console.hx

@@ -330,6 +330,9 @@ class Console #if !macro extends h2d.Object #end {
 			}
 		}
 
+		if( aliases.exists(cmd) )
+			closestCommand = cmd;
+
 		if (hadShortKey && closestCommand != "")
 			closestCommand = String.fromCharCode(shortKeyChar) + closestCommand;
 		return closestCommand;