fix: aliases for lua commands

pull/38/head
sammy 2021-04-20 19:26:33 -04:00
parent 7b0b06d9bf
commit bdc8c770e6
No known key found for this signature in database
GPG Key ID: 50EE40A2809851F5
1 changed files with 3 additions and 1 deletions

View File

@ -31,7 +31,9 @@ func RunInput(input string) {
// If alias was found, use command alias
if aliases[cmdArgs[0]] != "" {
cmdString = aliases[cmdArgs[0]] + strings.Trim(cmdString, cmdArgs[0])
alias := aliases[cmdArgs[0]]
cmdString = alias + strings.Trim(cmdString, cmdArgs[0])
cmdArgs[0] = alias
}
// If command is defined in Lua then run it