Skip to content

Commit

Permalink
Fix ddu#redraw
Browse files Browse the repository at this point in the history
  • Loading branch information
Shougo committed Nov 29, 2023
1 parent ba8b204 commit 9911b66
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion denops/ddu/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,10 @@ export function main(denops: Denops) {
).filter((index) => index >= 0);

if (volatiles.length > 0 || opt?.refreshItems || opt?.updateOptions) {
await ddu.refresh(denops, volatiles);
await ddu.refresh(
denops,
opt?.refreshItems || opt?.updateOptions ? [] : volatiles,
);
} else {
await ddu.redraw(denops);
}
Expand Down

0 comments on commit 9911b66

Please sign in to comment.