emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/undo-tree 22d6c01 153/195: Fix bug that cleared tree wh


From: Stefan Monnier
Subject: [elpa] externals/undo-tree 22d6c01 153/195: Fix bug that cleared tree when enabling undo-tree-mode.
Date: Sat, 28 Nov 2020 13:41:42 -0500 (EST)

branch: externals/undo-tree
commit 22d6c0194a90e9c4a8b24e718eb85152c7461edd
Author: Toby S. Cubitt <toby-undo-tree@dr-qubit.org>
Commit: Toby S. Cubitt <toby-undo-tree@dr-qubit.org>

    Fix bug that cleared tree when enabling undo-tree-mode.
---
 undo-tree.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/undo-tree.el b/undo-tree.el
index 4891fcf..4e719fd 100644
--- a/undo-tree.el
+++ b/undo-tree.el
@@ -2592,7 +2592,7 @@ Within the undo-tree visualizer, the following keys are 
available:
 
   ;; if disabling `undo-tree-mode', rebuild `buffer-undo-list' from tree so
   ;; Emacs undo can work
-  (if (not undo-tree-mode)
+  (when (not undo-tree-mode)
     (undo-list-rebuild-from-tree)
     (setq buffer-undo-tree nil)))
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]