[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/vertico 949987f 1/5: vertico-quick/flat: Minor fixes
From: |
ELPA Syncer |
Subject: |
[elpa] externals/vertico 949987f 1/5: vertico-quick/flat: Minor fixes |
Date: |
Sat, 10 Jul 2021 16:57:16 -0400 (EDT) |
branch: externals/vertico
commit 949987fbf7b38973951678564b01b193beada9f6
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>
vertico-quick/flat: Minor fixes
---
extensions/vertico-flat.el | 2 +-
extensions/vertico-quick.el | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/extensions/vertico-flat.el b/extensions/vertico-flat.el
index c6366df..75ba4de 100644
--- a/extensions/vertico-flat.el
+++ b/extensions/vertico-flat.el
@@ -55,7 +55,7 @@
(defun vertico-flat--format-candidates (_metadata)
"Format candidates."
- (let* ((index vertico--index)
+ (let* ((index (max 0 vertico--index))
(count vertico-count)
(candidates (nthcdr vertico--index vertico--candidates))
(width (- (window-width) 4
diff --git a/extensions/vertico-quick.el b/extensions/vertico-quick.el
index 22ba3d0..80f8e13 100644
--- a/extensions/vertico-quick.el
+++ b/extensions/vertico-quick.el
@@ -56,7 +56,7 @@
:type 'string
:group 'vertico)
-(defvar-local vertico-quick--list 0)
+(defvar-local vertico-quick--list nil)
(defvar-local vertico-quick--first nil)
(defun vertico-quick--format-candidate (orig cand prefix suffix index start)