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

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

[elpa] externals/undo-tree d0e8793 145/195: Fix diff after undo-tree-vis


From: Stefan Monnier
Subject: [elpa] externals/undo-tree d0e8793 145/195: Fix diff after undo-tree-visualize-[undo|redo]-to-x in selection mode.
Date: Sat, 28 Nov 2020 13:41:40 -0500 (EST)

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

    Fix diff after undo-tree-visualize-[undo|redo]-to-x in selection mode.
---
 undo-tree.el | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/undo-tree.el b/undo-tree.el
index 769f0b0..114cd75 100644
--- a/undo-tree.el
+++ b/undo-tree.el
@@ -3960,7 +3960,11 @@ specifies `saved', and a negative prefix argument 
specifies
                         (and (or (null x) (eq x 'saved))
                              (undo-tree-node-unmodified-p current))
                         ))))
-    (when diff (undo-tree-visualizer-show-diff))))
+    ;; update diff display, if any
+    (when diff
+      (undo-tree-visualizer-show-diff
+       (when undo-tree-visualizer-selection-mode
+        undo-tree-visualizer-selected-node)))))
 
 
 (defun undo-tree-visualize-redo-to-x (&optional x)
@@ -4008,7 +4012,11 @@ specifies `saved', and a negative prefix argument 
specifies
                         (and (or (null x) (eq x 'saved))
                              (undo-tree-node-unmodified-p current))
                         ))))
-    (when diff (undo-tree-visualizer-show-diff))))
+    ;; update diff display, if any
+    (when diff
+      (undo-tree-visualizer-show-diff
+       (when undo-tree-visualizer-selection-mode
+        undo-tree-visualizer-selected-node)))))
 
 
 (defun undo-tree-visualizer-toggle-timestamps ()



reply via email to

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