Skip to content

Commit

Permalink
🐛 Fix passing args as array in dispatch
Browse files Browse the repository at this point in the history
  • Loading branch information
kuuote committed Feb 4, 2024
1 parent 37f91fb commit 04d56cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion denops.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,6 @@ export class DenopsImpl implements Denops {
}

dispatch(name: string, fn: string, ...args: unknown[]): Promise<unknown> {
return this.#client.call("invoke", "dispatch", [name, fn, args]);
return this.#client.call("invoke", "dispatch", [name, fn, ...args]);
}
}

0 comments on commit 04d56cf

Please sign in to comment.