emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/corfu 1820c0e50e 3/3: Indentation


From: ELPA Syncer
Subject: [elpa] externals/corfu 1820c0e50e 3/3: Indentation
Date: Fri, 3 Jun 2022 08:57:25 -0400 (EDT)

branch: externals/corfu
commit 1820c0e50e500654c715daae3ad8db59550af7b3
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>

    Indentation
---
 corfu.el | 20 +++++++++++---------
 1 file changed, 11 insertions(+), 9 deletions(-)

diff --git a/corfu.el b/corfu.el
index 5152819fcf..8fa8b99414 100644
--- a/corfu.el
+++ b/corfu.el
@@ -492,15 +492,17 @@ A scroll bar is displayed from LO to LO+BAR."
 (defun corfu--popup-hide ()
   "Hide Corfu popup."
   (when (frame-live-p corfu--frame)
-    (run-at-time 0 nil (lambda ()
-                         ;; Redisplay such that the input becomes immediately 
visible before the popup
-                         ;; hiding, which is slow (Issue #48). See also 
corresponding vertico#89.
-                         (redisplay)
-                         (when (frame-live-p corfu--frame)
-                           (make-frame-invisible corfu--frame)
-                           (with-current-buffer (window-buffer 
(frame-root-window corfu--frame))
-                             (let ((inhibit-read-only t))
-                               (erase-buffer))))))))
+    (run-at-time
+     0 nil
+     (lambda ()
+       (when (frame-live-p corfu--frame)
+         ;; Redisplay such that the input becomes immediately visible before 
the popup
+         ;; hiding, which is slow (Issue #48). See also corresponding 
vertico#89.
+         (redisplay)
+         (make-frame-invisible corfu--frame)
+         (with-current-buffer (window-buffer (frame-root-window corfu--frame))
+           (let ((inhibit-read-only t))
+             (erase-buffer))))))))
 
 (defun corfu--popup-support-p ()
   "Return non-nil if child frames are supported."



reply via email to

[Prev in Thread] Current Thread [Next in Thread]