branch: externals/consult
commit a7db54eab58d8859922ffdb07141f6466fd6079d
Author: Daniel Mendler <[email protected]>
Commit: Daniel Mendler <[email protected]>
consult--split-setup: Fix
---
consult-selectrum.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/consult-selectrum.el b/consult-selectrum.el
index 3ff22276bd..706e0c6b78 100644
--- a/consult-selectrum.el
+++ b/consult-selectrum.el
@@ -71,7 +71,7 @@ and HIGHLIGHT."
"Wrap candidates highlight/refinement ORIG function.
The input is split by the SPLIT function."
(lambda (str cands)
- (funcall orig (cadr (funcall split str)) cands)))
+ (funcall orig (substring str (cadr (funcall split str))) cands)))
(defun consult-selectrum--split-setup-adv (orig split)
"Advice for `consult--split-setup' to be used by Selectrum.