aboutsummaryrefslogtreecommitdiff
path: root/evil-common.el
diff options
context:
space:
mode:
authorAxel Forsman <axelsfor@gmail.com>2023-01-14 11:56:17 +0100
committerAxel Forsman <axelsfor@gmail.com>2023-01-14 20:57:54 +0100
commit29a5d464e973b66abae20e6c4b402a366547c7a5 (patch)
treed6ed74a74b6df31a5e1b5a6f95329c5698010dc0 /evil-common.el
parent00bd29715028b06384435f053a36b6e994f1d1d7 (diff)
Use original state for populating shortcut map
Changing to Operator-pending state before executing (evil-extract-count (this-command-keys)) can give the wrong result since the actual binding used to invoke the operator may not be present in the new state. Resolves #1073
Diffstat (limited to 'evil-common.el')
-rw-r--r--evil-common.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/evil-common.el b/evil-common.el
index bc76653..b991b86 100644
--- a/evil-common.el
+++ b/evil-common.el
@@ -714,12 +714,12 @@ recursively."
(beg 0)
(end 1)
(found-prefix nil))
- (while (and (<= end len))
+ (while (<= end len)
(let* ((seq (substring keys beg end))
(cmd (key-binding seq)))
(cond
((memq cmd '(undefined nil))
- (user-error "No command bound to %s" seq))
+ (user-error "No command bound to `%s'" seq))
((arrayp cmd) ; keyboard macro, replace command with macro
(setq keys (vconcat (substring keys 0 beg)
cmd