[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/vertico 0de48f8: Create count overlay only when format
From: |
ELPA Syncer |
Subject: |
[elpa] externals/vertico 0de48f8: Create count overlay only when format is non-nil |
Date: |
Tue, 6 Jul 2021 10:57:20 -0400 (EDT) |
branch: externals/vertico
commit 0de48f82854daeb459af6d801f936271a89d5a53
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>
Create count overlay only when format is non-nil
---
vertico.el | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/vertico.el b/vertico.el
index f063a28..9629199 100644
--- a/vertico.el
+++ b/vertico.el
@@ -489,7 +489,7 @@ See `resize-mini-windows' for documentation."
(defun vertico--display-count ()
"Update count overlay `vertico--count-ov'."
- (when vertico-count-format
+ (when vertico--count-ov
(move-overlay vertico--count-ov (point-min) (point-min))
(overlay-put vertico--count-ov 'before-string
(format (car vertico-count-format)
@@ -682,7 +682,8 @@ When the prefix argument is 0, the group order is reset."
"Setup completion UI."
(setq vertico--input t
vertico--candidates-ov (make-overlay (point-max) (point-max) nil t t)
- vertico--count-ov (make-overlay (point-min) (point-min) nil t t))
+ vertico--count-ov (and vertico-count-format
+ (make-overlay (point-min) (point-min) nil t t)))
(setq-local resize-mini-windows 'grow-only
max-mini-window-height 1.0
completion-auto-help nil
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [elpa] externals/vertico 0de48f8: Create count overlay only when format is non-nil,
ELPA Syncer <=