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

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

[elpa] scratch/add-vdiff 9890b81 181/258: Fix weird vscroll problem


From: Justin Burkett
Subject: [elpa] scratch/add-vdiff 9890b81 181/258: Fix weird vscroll problem
Date: Wed, 17 May 2017 08:13:47 -0400 (EDT)

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

    Fix weird vscroll problem
---
 vdiff.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/vdiff.el b/vdiff.el
index b01076a..2ceba26 100644
--- a/vdiff.el
+++ b/vdiff.el
@@ -1353,7 +1353,9 @@ buffer)."
              (vdiff--in-scroll-hook t))
         (when (and 2-pos 2-start-pos)
           (set-window-point 2-win 2-pos)
-          (set-window-start 2-win 2-start-pos)
+          ;; For some reason without this unless the vscroll gets eff'd
+          (unless (= (window-start 2-win) 2-start-pos)
+            (set-window-start 2-win 2-start-pos))
           (vdiff--set-vscroll-and-force-update 2-win 2-scroll))
         (when vdiff-3way-mode
           (let*



reply via email to

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