branch: externals/marginalia
commit 785c436ebe4a8475ac04f70ed59f8c7a87421594
Author: Daniel Mendler <[email protected]>
Commit: Daniel Mendler <[email protected]>

    Use \` instead of ^ in regexp
---
 marginalia.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/marginalia.el b/marginalia.el
index ab9eea5f84..e0caf8706d 100644
--- a/marginalia.el
+++ b/marginalia.el
@@ -615,7 +615,7 @@ keybinding since CAND includes it."
   "Annotate imenu CAND with its documentation string."
   (when (derived-mode-p 'emacs-lisp-mode)
     ;; Strip until the last whitespace in order to support flat imenu
-    (marginalia-annotate-symbol (replace-regexp-in-string "^.* " "" cand))))
+    (marginalia-annotate-symbol (replace-regexp-in-string "\\`.* " "" cand))))
 
 (defun marginalia-annotate-function (cand)
   "Annotate function CAND with its documentation string."

Reply via email to