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

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

[nongnu] elpa/evil-goggles df26adb069 153/225: Use async hints for paste


From: ELPA Syncer
Subject: [nongnu] elpa/evil-goggles df26adb069 153/225: Use async hints for paste, undo/redo, set mark
Date: Wed, 12 Jan 2022 08:59:04 -0500 (EST)

branch: elpa/evil-goggles
commit df26adb069f85e1ce26a93df627dc015b9321170
Author: Evgeni Kolev <evgenysw@gmail.com>
Commit: Evgeni Kolev <evgenysw@gmail.com>

    Use async hints for paste, undo/redo, set mark
---
 evil-goggles.el | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/evil-goggles.el b/evil-goggles.el
index 8ada3c757d..3e1014cc19 100644
--- a/evil-goggles.el
+++ b/evil-goggles.el
@@ -234,8 +234,11 @@ will be adjusted if BODY modifies the text in it."
   "Show hint from BEG to END with face FACE for DUR sec.
 
 The hint will be a vertical block if FORCE-BLOCK is non-nil."
-  (let ((evil-goggles--force-block force-block))
-    (evil-goggles--with-blocking-hint beg end face)))
+  (if force-block
+      (let ((evil-goggles--force-block force-block))
+        ;; use blocking hint for blocks, async hint doesn't support blocks
+        (evil-goggles--with-blocking-hint beg end face))
+    (evil-goggles--with-async-hint beg end face)))
 
 (defun evil-goggles--show-block-overlay (beg end face dur)
   "Show overlay from BEG to END with face FACE for DUR seconds.



reply via email to

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