Skip to content

Commit

Permalink
Check visible after uiAction
Browse files Browse the repository at this point in the history
  • Loading branch information
Shougo committed Jan 22, 2025
1 parent 30f6543 commit c33a5eb
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions denops/ddu/ddu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -958,6 +958,18 @@ 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 c33a5eb

Please sign in to comment.