diff options
| author | Lin Sun <sunlin7@hotmail.com> | 2022-12-02 00:00:53 +0000 |
|---|---|---|
| committer | Tom Dalziel <33435574+tomdl89@users.noreply.github.com> | 2022-12-29 17:39:30 +0000 |
| commit | a87d5fd1ad5125269e43727627a3e26a53fc2fc8 (patch) | |
| tree | 6432fc7dfd98eeb394ab03981ffb5767e8eae5ef /evil-core.el | |
| parent | 1226944a5d7a409400394e34b673e57544bb8abb (diff) | |
evil-core: don't change match data in the advice of set-window-buffer
Diffstat (limited to 'evil-core.el')
| -rw-r--r-- | evil-core.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/evil-core.el b/evil-core.el index 15ca2f3..62ec6ab 100644 --- a/evil-core.el +++ b/evil-core.el @@ -372,7 +372,7 @@ then this function does nothing." (when (get-buffer (ad-get-arg 1)) (with-current-buffer (ad-get-arg 1) (unless evil-local-mode - (evil-local-mode 1)))))) + (save-match-data (evil-local-mode 1))))))) ;; Refresh cursor color. ;; Cursor color can only be set for each frame but not for each buffer. |
