Nicolas Cannasse 3 gadi atpakaļ
vecāks
revīzija
31bc59642e
1 mainītis faili ar 3 papildinājumiem un 0 dzēšanām
  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 != "")
 		if (hadShortKey && closestCommand != "")
 			closestCommand = String.fromCharCode(shortKeyChar) + closestCommand;
 			closestCommand = String.fromCharCode(shortKeyChar) + closestCommand;
 		return closestCommand;
 		return closestCommand;