feature/evil: don't revert to initial state on window switch
The issue this "fixes" wasn't really an issue to begin with.
This commit is contained in:
parent
e70b1af49f
commit
f9bcd2aff3
2 changed files with 0 additions and 11 deletions
|
@ -250,15 +250,6 @@ the first match on each line)."
|
|||
"Don't move cursor on indent."
|
||||
(save-excursion (apply orig-fn args)))
|
||||
|
||||
;;;###autoload
|
||||
(defun +evil*restore-initial-state-on-windmove (orig-fn &rest args)
|
||||
"Revert buffer to its initial state when switching to another window. This
|
||||
prevents states from bleeding into other modes across windows."
|
||||
(let ((initial-state (evil-initial-state major-mode 'normal)))
|
||||
(unless (eq evil-state initial-state)
|
||||
(evil-change-state initial-state)))
|
||||
(apply orig-fn args))
|
||||
|
||||
;;;###autoload
|
||||
(defun +evil*resolve-vim-path (file-name)
|
||||
"Take a path and resolve any vim-like filename modifiers in it. This adds
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue