Nicolas Cannasse %!s(int64=3) %!d(string=hai) anos
pai
achega
31bc59642e
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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;