branch: master commit 7f022f7f1a7833618c1bf4d38a4854d2bae06199 Author: Oleh Krehel <ohwoeo...@gmail.com> Commit: Oleh Krehel <ohwoeo...@gmail.com>
Fix unbind of key-chord when hydra is active * hydra.el (hydra-disable): Don't remove advice on `input-method-function' unless `hydra--ignore' is nil. Fixes #97 --- hydra.el | 11 ++++++----- 1 files changed, 6 insertions(+), 5 deletions(-) diff --git a/hydra.el b/hydra.el index a7a71ac..898e209 100644 --- a/hydra.el +++ b/hydra.el @@ -141,11 +141,12 @@ warn: keep KEYMAP and issue a warning instead of running the command." "Disable the current Hydra." (setq hydra-deactivate nil) (remove-hook 'pre-command-hook 'hydra--clearfun) - (if (fboundp 'remove-function) - (remove-function input-method-function #'hydra--imf) - (when hydra--input-method-function - (setq input-method-function hydra--input-method-function) - (setq hydra--input-method-function nil))) + (unless hydra--ignore + (if (fboundp 'remove-function) + (remove-function input-method-function #'hydra--imf) + (when hydra--input-method-function + (setq input-method-function hydra--input-method-function) + (setq hydra--input-method-function nil)))) (dolist (frame (frame-list)) (with-selected-frame frame (when overriding-terminal-local-map