From 0765418e4362099db8788fcb745ce9b7602aa001 Mon Sep 17 00:00:00 2001 From: Radon Rosborough Date: Sun, 5 May 2024 15:49:48 -0700 Subject: [PATCH] Fix a bug --- CHANGELOG.md | 6 ++++++ vertico-prescient.el | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7adca3e..f17207c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog]. +## Unreleased +### Bugs fixed +* In version 6.3 a bug was introduced that caused + `vertico-directory-enter` to no longer remember candidates. This has + been fixed. + ## 6.3 (released 2024-02-25) ### Enhancements * The completion style now supports lazy highlighting via diff --git a/vertico-prescient.el b/vertico-prescient.el index 7d6f6c6..d43a8c8 100644 --- a/vertico-prescient.el +++ b/vertico-prescient.el @@ -157,7 +157,7 @@ Such commands are listed in `vertico-prescient--insertion-commands'." ;; In Emacs 28+, we would use the new second argument ;; to `minibufferp' check if the buffer is the active ;; minibuffer, but we want to support Emacs 27. - (and (> 0 (minibuffer-depth)) + (and (> (minibuffer-depth) 0) (minibufferp buf) (eq (active-minibuffer-window) (get-buffer-window buf)))))