branch: scratch/add-vdiff
commit f3b6cec0b37e667e651d6751ebff026019ecd0bf
Author: justbur <[email protected]>
Commit: justbur <[email protected]>
Center on start
---
vdiff.el | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/vdiff.el b/vdiff.el
index 53c90cb..7d56cef 100644
--- a/vdiff.el
+++ b/vdiff.el
@@ -1585,7 +1585,8 @@ asked to select two buffers."
(vdiff-mode -1)
(vdiff-3way-mode -1)
(vdiff-mode 1)))
- (vdiff-refresh))
+ (vdiff-refresh)
+ (vdiff-sync-and-center))
(defcustom vdiff-3way-layout-function 'vdiff-3way-layout-function-default
"Function to layout windows in 3way diffs"
@@ -1626,7 +1627,8 @@ asked to select two buffers."
(vdiff-mode -1)
(vdiff-3way-mode -1)
(vdiff-3way-mode 1)))
- (vdiff-refresh))
+ (vdiff-refresh)
+ (vdiff-sync-and-center))
;;;###autoload
(defun vdiff-files3 (file-a file-b file-c)