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

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

[elpa] scratch/add-vdiff a88d313 200/258: Sync scroll after fold toggle


From: Justin Burkett
Subject: [elpa] scratch/add-vdiff a88d313 200/258: Sync scroll after fold toggle
Date: Wed, 17 May 2017 08:13:50 -0400 (EDT)

branch: scratch/add-vdiff
commit a88d313643b203c7323af2c096e2a3caa2f8efd7
Author: justbur <address@hidden>
Commit: justbur <address@hidden>

    Sync scroll after fold toggle
---
 vdiff.el | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/vdiff.el b/vdiff.el
index 8e81e09..eee7394 100644
--- a/vdiff.el
+++ b/vdiff.el
@@ -1458,7 +1458,8 @@ in the region."
     (when (eq (overlay-get ovr 'vdiff-type) 'fold)
       (vdiff--set-open-fold-props ovr)
       (dolist (other-fold (overlay-get ovr 'vdiff-other-folds))
-        (vdiff--set-open-fold-props other-fold)))))
+        (vdiff--set-open-fold-props other-fold))))
+  (vdiff--scroll-function))
 
 (defun vdiff-close-fold (beg end)
   "Close folds between BEG and END, as well as corresponding ones
@@ -1471,7 +1472,8 @@ folds in the region."
       (setf (vdiff-session-all-folds-open vdiff--session) nil)
       (vdiff--set-closed-fold-props ovr)
       (dolist (other-fold (overlay-get ovr 'vdiff-other-folds))
-        (vdiff--set-closed-fold-props other-fold)))))
+        (vdiff--set-closed-fold-props other-fold))))
+  (vdiff--scroll-function))
 
 (defun vdiff-open-all-folds ()
   "Open all folds in both buffers"



reply via email to

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