[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/corfu 59a3037 06/16: Ensure that overlay is deleted pro
From: |
Protesilaos Stavrou |
Subject: |
[elpa] externals/corfu 59a3037 06/16: Ensure that overlay is deleted properly |
Date: |
Wed, 28 Apr 2021 14:20:02 -0400 (EDT) |
branch: externals/corfu
commit 59a3037a3258118443d68e4d188bc225bbe15893
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>
Ensure that overlay is deleted properly
---
corfu.el | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/corfu.el b/corfu.el
index a15f21c..9b98861 100644
--- a/corfu.el
+++ b/corfu.el
@@ -428,7 +428,6 @@ Set to nil in order to disable confirmation."
(cands (funcall corfu--highlight (seq-subseq corfu--candidates start
last)))
(ann-cands (mapcar #'corfu--format-candidate (corfu--annotate
metadata cands))))
(when (>= curr 0)
- (when corfu--overlay (delete-overlay corfu--overlay))
(setq corfu--overlay (make-overlay beg end nil t t))
(overlay-put corfu--overlay 'priority 1000)
(overlay-put corfu--overlay 'window (selected-window))
@@ -480,6 +479,9 @@ Set to nil in order to disable confirmation."
(defun corfu--pre-command-hook ()
"Insert selected candidate unless keep alive command."
+ (when corfu--overlay
+ (delete-overlay corfu--overlay)
+ (setq corfu--overlay nil))
(unless (or (< corfu--index 0) (corfu--keep-alive-p))
(corfu--insert 'exact)))
- [elpa] externals/corfu updated (5d59adc -> a53a98a), Protesilaos Stavrou, 2021/04/28
- [elpa] externals/corfu fef8377 02/16: Add popup comment (See #10 and #15), Protesilaos Stavrou, 2021/04/28
- [elpa] externals/corfu 5951abd 04/16: Reorder exit conditions, Protesilaos Stavrou, 2021/04/28
- [elpa] externals/corfu 7155196 05/16: Simplify, Protesilaos Stavrou, 2021/04/28
- [elpa] externals/corfu 59a3037 06/16: Ensure that overlay is deleted properly,
Protesilaos Stavrou <=
- [elpa] externals/corfu 9eb9ae6 08/16: Keep frame alive for performance, Protesilaos Stavrou, 2021/04/28
- [elpa] externals/corfu e5dad66 09/16: Use internal border, Protesilaos Stavrou, 2021/04/28
- [elpa] externals/corfu e4d66b6 10/16: Use spaces for border/bar instead of image, Protesilaos Stavrou, 2021/04/28
- [elpa] externals/corfu cdd215d 13/16: Ensure that frame buffer is set, Protesilaos Stavrou, 2021/04/28
- [elpa] externals/corfu a53a98a 16/16: Simplify face definitions, Protesilaos Stavrou, 2021/04/28
- [elpa] externals/corfu 59949d3 03/16: Use child frames instead of overlays, Protesilaos Stavrou, 2021/04/28
- [elpa] externals/corfu 9aa922d 01/16: Use `vertical-motion` instead of `forward-line`, Protesilaos Stavrou, 2021/04/28
- [elpa] externals/corfu 4f6aac9 07/16: Ensure that documentation/location frame still works with child-frame popup, Protesilaos Stavrou, 2021/04/28
- [elpa] externals/corfu aab3bb5 11/16: Use redraw-frame, Protesilaos Stavrou, 2021/04/28
- [elpa] externals/corfu 3cfb6f4 12/16: Pixel-perfect positioning, Protesilaos Stavrou, 2021/04/28