Skip to content

Commit

Permalink
Fix term-mode undo issue
Browse files Browse the repository at this point in the history
Currently Evil breaks `term-char-mode` undo by enabling `undo-tree-mode`, see
syl20bnr/spacemacs#4063 (comment)

`turn-on-undo-tree-mode` checks the variable `undo-tree-incompatible-major-modes`
before enabling `undo-tree-mode`, see https://github.com/emacs-evil/evil/blob/master/lib/undo-tree.el#L2618
  • Loading branch information
toctan committed Sep 1, 2017
1 parent 744685c commit cf065c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion evil-integration.el
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ some buffer, but only if `global-undo-tree-mode' is also
activated."
(when (and (boundp 'global-undo-tree-mode)
global-undo-tree-mode)
(undo-tree-mode 1)))
(turn-on-undo-tree-mode)))

(add-hook 'evil-local-mode-hook #'evil-turn-on-undo-tree-mode)

Expand Down

0 comments on commit cf065c3

Please sign in to comment.