From d361bc218f8f0cbac0104431abcc7e4aa5558d00 Mon Sep 17 00:00:00 2001 From: Dmitry Gutov Date: Mon, 4 Feb 2013 04:29:19 +0400 Subject: [PATCH] Fix jumping to one-line hunks --- diff-hl.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/diff-hl.el b/diff-hl.el index 5b1ecdac7..17984c519 100644 --- a/diff-hl.el +++ b/diff-hl.el @@ -308,8 +308,8 @@ in the source file, or the last line of the hunk above it." (next-overlay-change (point)))) (let ((o (diff-hl-hunk-overlay-at (point)))) (when (and o (if backward - (<= (overlay-end o) (1+ (point))) - (>= (overlay-start o) (point)))) + (>= (overlay-end o) (point)) + (<= (overlay-start o) (point)))) (throw 'found (overlay-start o))))))))) (if pos (goto-char pos) -- 2.39.2