From 9f415468aea2a9208a0da71bbb39a286b9e7f2a0 Mon Sep 17 00:00:00 2001 From: Dmitry Gutov Date: Thu, 27 Sep 2012 03:12:33 +0400 Subject: [PATCH] diff-hl-previous-hunk: Fix an edge case Continued from a01d2917a07d91269c13901bb65fd7ef54766fd4. I may have to start writing tests soon. --- diff-hl.el | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/diff-hl.el b/diff-hl.el index 84725a0c3..03ceac2d0 100644 --- a/diff-hl.el +++ b/diff-hl.el @@ -3,7 +3,7 @@ ;; Author: Dmitry Gutov ;; URL: https://github.com/dgutov/diff-hl ;; Keywords: vc, diff -;; Version: 1.3 +;; Version: 1.3.1 ;; Package-Requires: ((smartrep "0.0.3")) ;; This file is not part of GNU Emacs. @@ -287,7 +287,6 @@ in the source file, or the last line of the hunk above it." (interactive) (let ((pos (save-excursion (catch 'found - (when (and backward (bolp) (not (eobp))) (forward-char)) (while (not (if backward (bobp) (eobp))) (goto-char (if backward (previous-overlay-change (point)) -- 2.39.2