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

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

[elpa] scratch/add-vdiff 1276208 103/258: Recenter after next/prev hunk


From: Justin Burkett
Subject: [elpa] scratch/add-vdiff 1276208 103/258: Recenter after next/prev hunk
Date: Wed, 17 May 2017 08:13:31 -0400 (EDT)

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

    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
 



reply via email to

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