From 42686d1f427491eed2f2caf9315418a3529a02ad Mon Sep 17 00:00:00 2001 From: Eshel Yaron Date: Sat, 13 Jul 2024 16:22:54 +0200 Subject: [PATCH] (search-read-target): Fix off-by-one in group-function --- lisp/search.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lisp/search.el b/lisp/search.el index 366a2aaed07..829da463282 100644 --- a/lisp/search.el +++ b/lisp/search.el @@ -150,8 +150,9 @@ `((category . search) (group-function . ,(lambda (string &optional transform) - (when transform (nth 1 (string-split string ":"))))))) - nil t)) + (when transform + (substring string (1+ (string-search ":" string)))))))) + nil t nil t)) tab)) (mapc #'delete-overlay ovs) (mapc #'delete-overlay ovz)))) -- 2.39.2