branch: scratch/add-vdiff
commit 12762085ad3c7b577b6d1a6d2aa3c9ad76e1634e
Author: justbur <[email protected]>
Commit: justbur <[email protected]>
Recenter after next/prev hunk
---
vdiff.el | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/vdiff.el b/vdiff.el
index 1d94147..6b174ec 100644
--- a/vdiff.el
+++ b/vdiff.el
@@ -1119,28 +1119,28 @@ with non-nil USE-FOLDS."
(interactive "p")
(let ((count (or arg 1)))
(goto-char (vdiff--nth-hunk count))
- (vdiff--recenter-both)))
+ (vdiff-sync-and-center)))
(defun vdiff-previous-hunk (arg)
"Jump to previous change in this buffer."
(interactive "p")
(let ((count (or (- arg) -1)))
(goto-char (vdiff--nth-hunk count))
- (vdiff--recenter-both)))
+ (vdiff-sync-and-center)))
(defun vdiff-next-fold (arg)
"Jump to next fold in this buffer."
(interactive "p")
(let ((count (or arg 1)))
(goto-char (vdiff--nth-hunk count t))
- (vdiff--recenter-both)))
+ (vdiff-sync-and-center)))
(defun vdiff-previous-fold (arg)
"Jump to previous fold in this buffer."
(interactive "p")
(let ((count (or (- arg) -1)))
(goto-char (vdiff--nth-hunk count t))
- (vdiff--recenter-both)))
+ (vdiff-sync-and-center)))
;; * Entry points