branch: externals/ivy-hydra
commit 222980158915e87e3ae15d47cd79dc9c042e85ab
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>
counsel.el (counsel-M-x-action): Trim left ^
Fixes #2448
---
counsel.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/counsel.el b/counsel.el
index c34afb5..348c514 100644
--- a/counsel.el
+++ b/counsel.el
@@ -884,7 +884,7 @@ packages are, in order of precedence, `amx' and `smex'."
(defun counsel-M-x-action (cmd)
"Execute CMD."
- (setq cmd (intern cmd))
+ (setq cmd (intern (string-trim-left cmd "\\^")))
(cond ((bound-and-true-p amx-initialized)
(amx-rank cmd))
((bound-and-true-p smex-initialized-p)