branch: externals/embark
commit d93b7c425aca46d616ec5c9a1c021ad93b8d99d2
Author: Omar Antolín <[email protected]>
Commit: Omar Antolín <[email protected]>
Fix Consult preview for Embark Live buffers
This was a casualty of recent changes to Embark. Since nobody actually
uses Embark Live, nobody had noticed... 😛
---
embark-consult.el | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/embark-consult.el b/embark-consult.el
index 2780d69d8d..c62a645d8d 100644
--- a/embark-consult.el
+++ b/embark-consult.el
@@ -74,8 +74,7 @@
(defun embark-consult--collect-candidate ()
"Return candidate at point in collect buffer."
- (and (derived-mode-p 'embark-collect-mode)
- (get-text-property (point) 'embark--candidate)))
+ (cadr (embark-target-collect-candidate)))
(add-hook 'consult--completion-candidate-hook
#'embark-consult--collect-candidate)