]> code.delx.au - gnu-emacs-elpa/commitdiff
Account for digit argument
authorOleh Krehel <ohwoeowho@gmail.com>
Mon, 13 Apr 2015 09:51:10 +0000 (11:51 +0200)
committerOleh Krehel <ohwoeowho@gmail.com>
Mon, 13 Apr 2015 09:51:10 +0000 (11:51 +0200)
* hydra.el (hydra--clearfun): Update. digit-argument will modify
  this-command-keys-vector, but not this-single-command-keys.

Fixes #104

hydra.el

index 13970353a43e4c5ed9c77fba8d2feb816be19fd7..0d219e3e2dfae3f47cc5dbb9fbb45bfbb9da2395 100644 (file)
--- a/hydra.el
+++ b/hydra.el
@@ -111,7 +111,7 @@ warn: keep KEYMAP and issue a warning instead of running the command."
                            keyboard-quit))
       (hydra-disable)
     (unless (eq this-command
-                (lookup-key hydra-curr-map (this-command-keys-vector)))
+                (lookup-key hydra-curr-map (this-single-command-keys)))
       (unless (cl-case hydra-curr-foreign-keys
                 (warn
                  (setq this-command 'hydra-amaranth-warn))