Skip to content

Commit

Permalink
UI visible check for quit action
Browse files Browse the repository at this point in the history
  • Loading branch information
Shougo committed Jul 12, 2023
1 parent 06ea977 commit 6e7a979
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion denops/ddu/ddu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -922,7 +922,16 @@ export class Ddu {
return;
}

if (actionOptions.quit) {
const visible = await ui.visible({
denops,
context: this.context,
options: this.options,
uiOptions,
uiParams,
tabNr: await fn.tabpagenr(denops),
});

if (actionOptions.quit && visible) {
// NOTE: To quit UI properly, all items must be gathered.
if (!this.context.doneUi) {
echo(denops, "Current ddu UI is not done");
Expand Down

0 comments on commit 6e7a979

Please sign in to comment.