Skip to content

Commit

Permalink
Merge pull request #13 from kuuote/fix-dispatch_array
Browse files Browse the repository at this point in the history
🐛 Fix passing args as array in `dispatch`
  • Loading branch information
lambdalisue committed Feb 4, 2024
2 parents 37f91fb + 04d56cf commit db3e11d
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 db3e11d

Please sign in to comment.