Skip to content

Commit

Permalink
Fix prevDone check
Browse files Browse the repository at this point in the history
Ddu:uiDone is called only once
  • Loading branch information
Shougo committed Jun 16, 2024
1 parent 9706f47 commit 30481cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions denops/ddu/ext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -975,10 +975,10 @@ export async function uiRedraw<
}

if (!ui.prevDone && context.done) {
// NOTE: Ddu:uiDone is called only once
ui.prevDone = true;
await denops.cmd("doautocmd <nomodeline> User Ddu:uiDone");
}

ui.prevDone = context.done;
} catch (e: unknown) {
if (e instanceof Error && e.message.includes(" E523: ")) {
// NOTE: It may be called on invalid state
Expand Down

0 comments on commit 30481cb

Please sign in to comment.