evil: don't force normal mode from emacs mode
This commit is contained in:
parent
c34620f20f
commit
532db96645
1 changed files with 1 additions and 1 deletions
|
@ -112,7 +112,7 @@ ignored.")
|
||||||
"If in anything but normal or motion mode when moving to another window,
|
"If in anything but normal or motion mode when moving to another window,
|
||||||
restore normal mode. This prevents insert state from bleeding into other modes
|
restore normal mode. This prevents insert state from bleeding into other modes
|
||||||
across windows."
|
across windows."
|
||||||
(unless (memq evil-state '(normal motion))
|
(unless (memq evil-state '(normal motion emacs))
|
||||||
(evil-normal-state +1))
|
(evil-normal-state +1))
|
||||||
(apply orig-fn args))
|
(apply orig-fn args))
|
||||||
(advice-add #'windmove-do-window-select :around #'+evil*restore-normal-state-on-windmove)
|
(advice-add #'windmove-do-window-select :around #'+evil*restore-normal-state-on-windmove)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue