Skip to content

Commit 68eabd0

Browse files
committed
forge-read-topic-lift-limit: Refresh completions for built-in completion
Without this, the list of displayed choices is not updated until the user invokes `minibuffer-complete'. With this, the up-to-date list of available choices is displayed, even if previously it was not displayed. There probably is a way to just update the list, iff it is already displayed, but I cannot find it.
1 parent 5c00a38 commit 68eabd0

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

lisp/forge-topic.el

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -774,11 +774,14 @@ can be selected from the start."
774774
forge-limit-topic-choices)
775775
(setq-local forge-limit-topic-choices nil)
776776
(forge-read-topic--remove-prompt-hint)
777-
(when (and (bound-and-true-p vertico-mode)
778-
(boundp 'vertico--input)
779-
(fboundp 'vertico--exhibit))
780-
(setq vertico--input t)
781-
(vertico--exhibit))))
777+
(cond
778+
((and (bound-and-true-p vertico-mode)
779+
(boundp 'vertico--input)
780+
(fboundp 'vertico--exhibit))
781+
(setq vertico--input t)
782+
(vertico--exhibit))
783+
((minibuffer-completion-help (minibuffer--completion-prompt-end)
784+
(point-max))))))
782785

783786
(defun forge-read-topic--remove-prompt-hint ()
784787
(when (minibufferp)

0 commit comments

Comments
 (0)