Skip to content

Commit

Permalink
Add Ddu:redraw autocmd
Browse files Browse the repository at this point in the history
  • Loading branch information
Shougo committed Aug 1, 2023
1 parent 7d5144d commit fbabdc7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions denops/ddu/ddu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2181,6 +2181,8 @@ async function uiRedraw<
if (ddu.shouldStopCurrentContext()) {
await ddu.uiQuit(denops, ui, uiOptions, uiParams);
}

await denops.cmd("doautocmd User Ddu:redraw");
} catch (e: unknown) {
if (e instanceof Error && e.message.includes(" E523: ")) {
// NOTE: It may be called on invalid state
Expand Down
11 changes: 11 additions & 0 deletions doc/ddu.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ Actions |ddu-actions|
Action params |ddu-action-params|
Action flags |ddu-action-flags|
Types |ddu-types|
Autocmds |ddu-autocmds|
Create UI |ddu-create-ui|
UI attributes |ddu-ui-attributes|
Create source |ddu-create-source|
Expand Down Expand Up @@ -953,6 +954,16 @@ Please see the TypeScript definition.
https://deno.land/x/ddu_vim/types.ts?doc


==============================================================================
AUTOCMDS *ddu-autocmds*

ddu.vim defines some |User| autocmds.

*ddu-autocmd-Ddu:redraw*
Ddu:redraw
Called after |ddu-ui-attribute-redraw| is called.


==============================================================================
CREATE UI *ddu-create-ui*

Expand Down

0 comments on commit fbabdc7

Please sign in to comment.