From 298f95acb332a00b251f15c92f390dc350f56e5b Mon Sep 17 00:00:00 2001 From: Shougo Matsushita Date: Sat, 5 Aug 2023 15:54:05 +0900 Subject: [PATCH] Overwrite event if manaul completion --- denops/ddc/app.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/denops/ddc/app.ts b/denops/ddc/app.ts index ba24ed5..eb8cff7 100644 --- a/denops/ddc/app.ts +++ b/denops/ddc/app.ts @@ -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(