Skip to content

Commit

Permalink
NOTE
Browse files Browse the repository at this point in the history
  • Loading branch information
Shougo committed Oct 7, 2024
1 parent a17c74e commit 52b7a96
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion denops/ddc/loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@ export class Loader {

const key = `@ddc-${type}s/${this.getAlias(type, name) ?? name}`;

return this.#prevRuntimepath !== "" && this.#cachedPaths[key] !== undefined;
// NOTE: this.#prevRuntimepath may be true if initialized.
return this.#prevRuntimepath === "" || this.#cachedPaths[key] !== undefined;
}

registerAlias(type: DdcExtType, alias: string, base: string) {
Expand Down

0 comments on commit 52b7a96

Please sign in to comment.