branch: scratch/add-vdiff
commit 9890b81d7cd806b30ec05fbde7c0e36e33188209
Author: justbur <[email protected]>
Commit: justbur <[email protected]>
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*