Skip to content

Commit 3ffc55c

Browse files
disable auto recentering from diff-hl-find-current-hunk
1 parent dbf2285 commit 3ffc55c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

diff-hl.el

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1098,7 +1098,8 @@ its end position."
10981098
(diff-hl-next-hunk t))
10991099

11001100
(defun diff-hl-find-current-hunk ()
1101-
(let (o)
1101+
(let ((o)
1102+
(diff-hl-next-previous-hunk-auto-recenter nil))
11021103
(cond
11031104
((diff-hl-hunk-overlay-at (point)))
11041105
((setq o (diff-hl-search-next-hunk t))

0 commit comments

Comments
 (0)