Skip to content

Commit

Permalink
Fix refresh error
Browse files Browse the repository at this point in the history
  • Loading branch information
Shougo committed Apr 15, 2024
1 parent 92a681a commit 39bc2b7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion denops/ddu/ddu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -884,7 +884,10 @@ export class Ddu {
await Promise.all(
[...this.#gatherStates]
.map(([sourceIndex, state]) => {
if (state.signal.aborted) {
if (
(refreshIndexes.length === 0 ||
refreshIndexes.includes(sourceIndex)) && state.signal.aborted
) {
this.#gatherStates.delete(sourceIndex);
return state.waitDone;
}
Expand Down

0 comments on commit 39bc2b7

Please sign in to comment.