fix: resplit input on alias

this makes it so itll properly check if the aliased *command* is
defined in lua
therefore, cd with an argument can be aliased now
pull/59/head
sammy 2021-05-12 06:40:30 -04:00
parent f9c1eced68
commit edd45e4182
No known key found for this signature in database
GPG Key ID: 50EE40A2809851F5
1 changed files with 1 additions and 1 deletions

View File

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