Skip to content

Commit

Permalink
Improve reset prevDone
Browse files Browse the repository at this point in the history
  • Loading branch information
Shougo committed Jan 23, 2025
1 parent c33a5eb commit c736de0
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions denops/ddu/ddu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ export class Ddu {

if (ui) {
ui.isInitialized = false;
ui.prevDone = false;
}

this.#initialized = false;
Expand Down Expand Up @@ -958,18 +959,6 @@ export class Ddu {
);
}

const visible = await ui.visible({
denops,
context: this.#context,
options: this.#options,
uiOptions,
uiParams,
tabNr: await fn.tabpagenr(denops),
});
if (!visible) {
ui.prevDone = false;
}

// NOTE: :redraw is needed for command line
await denops.cmd("redraw");

Expand Down

0 comments on commit c736de0

Please sign in to comment.