Skip to content

Commit

Permalink
Merge pull request oantolin#548 from minad/fix-init
Browse files Browse the repository at this point in the history
Use vertico--update to ensure initialization
  • Loading branch information
oantolin authored Oct 23, 2022
2 parents f2a83a6 + eaa5f5d commit e216694
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions embark.el
Original file line number Diff line number Diff line change
Expand Up @@ -3258,7 +3258,7 @@ PRED is a predicate function used to filter the items."
;; vertico

(declare-function vertico--candidate "ext:vertico")
(declare-function vertico--exhibit "ext:vertico")
(declare-function vertico--update "ext:vertico")
(defvar vertico--input)
(defvar vertico--candidates)

Expand All @@ -3267,8 +3267,7 @@ PRED is a predicate function used to filter the items."
Return the category metadatum as the type of the target."
(when vertico--input
;; Force candidate computation, if candidates are not yet available.
(when (eq vertico--input t)
(vertico--exhibit))
(vertico--update)
(cons (completion-metadata-get (embark--metadata) 'category)
(vertico--candidate))))

Expand All @@ -3277,8 +3276,7 @@ Return the category metadatum as the type of the target."
Return the category metadatum as the type of the candidates."
(when vertico--input
;; Force candidate computation, if candidates are not yet available.
(when (eq vertico--input t)
(vertico--exhibit))
(vertico--update)
(cons (completion-metadata-get (embark--metadata) 'category)
vertico--candidates)))

Expand Down

0 comments on commit e216694

Please sign in to comment.