Skip to content

Commit

Permalink
Overwrite event if manaul completion
Browse files Browse the repository at this point in the history
  • Loading branch information
Shougo committed Aug 5, 2023
1 parent 2abe9a6 commit 298f95a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion denops/ddc/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,11 @@ export function main(denops: Denops) {

options.sources = ddc.prevSources;
options.ui = ddc.prevUi;
context.event = ddc.prevEvent;

if (ddc.prevEvent === "Manual") {
// Overwrite event if manaul completion
context.event = ddc.prevEvent;
}
}

await ddc.onEvent(
Expand Down

0 comments on commit 298f95a

Please sign in to comment.