From cd1fd6369a16ac049a283e1e9ded1f0782595e97 Mon Sep 17 00:00:00 2001 From: Alisue Date: Sat, 18 Oct 2025 12:54:28 +0900 Subject: [PATCH] fix: ensure initial matching when -input= option is provided The previous implementation set initialQuery to #previousQuery, which prevented the first matching from executing when an initial query was provided via the -input= option. This fix ensures the first matching always runs by keeping #previousQuery undefined on initialization. --- denops/fall/processor/match.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/denops/fall/processor/match.ts b/denops/fall/processor/match.ts index 1b201b7..433222a 100644 --- a/denops/fall/processor/match.ts +++ b/denops/fall/processor/match.ts @@ -50,7 +50,9 @@ export class MatchProcessor implements Disposable { this.#chunkInterval = options.chunkInterval ?? CHUNK_INTERVAL; this.#incremental = options.incremental ?? false; this.#items = options.initialItems?.slice() ?? []; - this.#previousQuery = options.initialQuery; + // Do not set initialQuery to #previousQuery to ensure the first matching + // is executed when the initial query is provided via -input= option. + this.#previousQuery = undefined; } get #matcher(): Matcher {