mirror of
https://github.com/vale981/tridactyl
synced 2025-03-06 10:01:39 -05:00
Merge pull request #659 from glacambre/fix_composite
excmds.ts: Fix composite
This commit is contained in:
commit
9f90deef5d
1 changed files with 1 additions and 1 deletions
|
@ -1779,7 +1779,7 @@ export async function composite(...cmds: string[]) {
|
|||
async (_, cmd) => {
|
||||
await _
|
||||
let cmds = cmd.split("|")
|
||||
let [fn, args] = excmd_parser.parser(cmd)
|
||||
let [fn, args] = excmd_parser.parser(cmds[0])
|
||||
return cmds.slice(1).reduce(async (pipedValue, cmd) => {
|
||||
let [fn, args] = excmd_parser.parser(cmd)
|
||||
return fn.call({}, ...args, await pipedValue)
|
||||
|
|
Loading…
Add table
Reference in a new issue