[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/vertico 4f231ff78d 1/2: vertico-repeat-last: Improve se
From: |
ELPA Syncer |
Subject: |
[elpa] externals/vertico 4f231ff78d 1/2: vertico-repeat-last: Improve session restoration |
Date: |
Tue, 28 Nov 2023 06:58:47 -0500 (EST) |
branch: externals/vertico
commit 4f231ff78d4a145aa127af4109e92887321fd565
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>
vertico-repeat-last: Improve session restoration
Do not restore display modes when modifying the current session
---
extensions/vertico-repeat.el | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/extensions/vertico-repeat.el b/extensions/vertico-repeat.el
index 8161db7ad5..0b3029f6bb 100644
--- a/extensions/vertico-repeat.el
+++ b/extensions/vertico-repeat.el
@@ -111,7 +111,10 @@
(when-let ((idx (seq-position vertico--candidates cand)))
(setq vertico--index idx
vertico--lock-candidate t)))
- (when-let ((mode (seq-find #'symbolp (cddr session)))
+ ;; Restore display modes if not modifying the current session
+ (when-let (((not (and vertico-repeat--command
+ (eq vertico-repeat--command (car session)))))
+ (mode (seq-find #'symbolp (cddr session)))
((bound-and-true-p vertico-multiform-mode))
((not (and (boundp mode) (symbol-value mode)))))
(vertico-multiform-vertical mode))