mirror of
https://github.com/doomemacs/doomemacs
synced 2025-09-16 15:56:52 -05:00
Don't invoke doom/escape too eagerly from evil
This fixes an issue where certain evil plugins would call evil-force-normal-state non-interactively, causing `doom-escape-hook` to wreck havoc. Instead, this should only happen when evil-force-normal-state is called interactively (e.g. via ESC in normal mode). Fixes evil-mc-make-cursor-move-next-line and evil-mc-make-cursor-move-prev-line.
This commit is contained in:
@@ -358,3 +358,9 @@ more information on modifiers."
|
||||
(when (and (not count) evil-auto-balance-windows)
|
||||
(balance-windows (window-parent)))
|
||||
(if file (evil-edit file)))
|
||||
|
||||
;;;###autoload
|
||||
(defun +evil*escape (&rest _)
|
||||
"Call `doom/escape' if `evil-force-normal-state' is called interactively."
|
||||
(when (called-interactively-p 'any)
|
||||
(call-interactively #'doom/escape)))
|
||||
|
Reference in New Issue
Block a user