branch: elpa/evil-iedit-state commit c6ed1ef1018fca1bb000981163a5d0a50fe9b282 Author: duianto <otna...@gmail.com> Commit: Sylvain Benner <sylvain.ben...@gmail.com>
Disable AHS mode when exiting evil-iedit-mode problem If `auto-highlight-symbol-mode` (AHS) was enabled before entering `evil-iedit-mode`. When exiting `evil-iedit-mode`, then the AHS highlight just gets cleared. But AHS mode is still enabled. Trying to enable AHS shows the message: >automatic-symbol-highlight disabled. AHS mode has to be toggled a second time to enable it. solution Disable AHS mode when exiting `evil-iedit-mode`, it also clears the AHS highlight. --- evil-iedit-state.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/evil-iedit-state.el b/evil-iedit-state.el index c739f598c0..e9115eae0a 100644 --- a/evil-iedit-state.el +++ b/evil-iedit-state.el @@ -57,7 +57,8 @@ (defun evil-iedit-state/iedit-mode (&optional arg) "Start `iedit-mode'." (interactive "P") - (if (fboundp 'ahs-clear) (ahs-clear)) + (when (fboundp 'auto-highlight-symbol-mode) + (auto-highlight-symbol-mode -1)) (iedit-mode arg) (evil-iedit-state))