Skip to content

Commit 4503d5d

Browse files
committed
feat: rename isCurator to incremental
1 parent 6630dcb commit 4503d5d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

denops/fall/config/item_picker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ class CuratorSourceMatcher<T extends Detail> implements Source<T>, Matcher<T> {
101101

102102
// This attribute is referred in Picker to determine if MatchProcessor
103103
// should be 'incremental'
104-
readonly isCurator = true;
104+
readonly incremental = true;
105105

106106
constructor(curator: Curator<T>) {
107107
this.#curator = curator;

denops/fall/picker.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ export class Picker<T extends Detail> implements AsyncDisposable {
105105
this.#matchProcessor = this.#stack.use(
106106
new MatchProcessor(params.matchers, {
107107
// Use incremental mode for Curator matcher
108-
incremental: isCuratorMatcher(params.matchers[0]),
108+
incremental: isIncrementalMatcher(params.matchers[0]),
109109
}),
110110
);
111111
this.#sortProcessor = this.#stack.use(
@@ -582,6 +582,6 @@ async function getScreenSize(denops: Denops): Promise<Size> {
582582
return { width, height };
583583
}
584584

585-
function isCuratorMatcher<T extends Detail>(m: Matcher<T>): boolean {
586-
return (m as { isCurator?: boolean }).isCurator ?? false;
585+
function isIncrementalMatcher<T extends Detail>(m: Matcher<T>): boolean {
586+
return (m as { incremental?: boolean }).incremental ?? false;
587587
}

0 commit comments

Comments
 (0)