Skip to content

Commit

Permalink
Use uiSearchItem
Browse files Browse the repository at this point in the history
  • Loading branch information
Shougo committed May 27, 2024
1 parent c1d8759 commit e31ef17
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 14 deletions.
26 changes: 12 additions & 14 deletions denops/ddu/ddu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1419,14 +1419,13 @@ export class Ddu {
);

if (!signal.aborted) {
await ui.searchItem({
await uiSearchItem(
denops,
context: this.#context,
options: this.#options,
uiOptions,
uiParams,
item: searchedItem ?? parent,
});
this.#loader,
this.#context,
this.#options,
searchedItem ?? parent,
);
}
}

Expand Down Expand Up @@ -1539,14 +1538,13 @@ export class Ddu {
const searchItem = items.at(-1);

if (searchItem && !signal.aborted) {
await ui.searchItem({
await uiSearchItem(
denops,
context: this.#context,
options: this.#options,
uiOptions,
uiParams,
item: searchItem,
});
this.#loader,
this.#context,
this.#options,
searchItem,
);
}
}
}
Expand Down
1 change: 1 addition & 0 deletions denops/ddu/ext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,7 @@ export async function uiSearchItem(
return;
}

console.log(searchItem);
await ui.searchItem({
denops,
context,
Expand Down

0 comments on commit e31ef17

Please sign in to comment.