]> code.delx.au - gnu-emacs-elpa/commitdiff
diff-hl-previous-hunk: Fix an edge case
authorDmitry Gutov <dgutov@yandex.ru>
Wed, 26 Sep 2012 23:12:33 +0000 (03:12 +0400)
committerDmitry Gutov <dgutov@yandex.ru>
Wed, 26 Sep 2012 23:12:33 +0000 (03:12 +0400)
Continued from a01d2917a07d91269c13901bb65fd7ef54766fd4.

I may have to start writing tests soon.

diff-hl.el

index 84725a0c358c53cabbf9a44d38f35fe63d3b11a7..03ceac2d0b7399aa1dfea50c523e1e43ae9ff23a 100644 (file)
@@ -3,7 +3,7 @@
 ;; Author:   Dmitry Gutov <dgutov@yandex.ru>\r
 ;; URL:      https://github.com/dgutov/diff-hl\r
 ;; Keywords: vc, diff\r
-;; Version:  1.3\r
+;; Version:  1.3.1\r
 ;; Package-Requires: ((smartrep "0.0.3"))\r
 \r
 ;; This file is not part of GNU Emacs.\r
@@ -287,7 +287,6 @@ in the source file, or the last line of the hunk above it."
   (interactive)\r
   (let ((pos (save-excursion\r
                (catch 'found\r
-                 (when (and backward (bolp) (not (eobp))) (forward-char))\r
                  (while (not (if backward (bobp) (eobp)))\r
                    (goto-char (if backward\r
                                   (previous-overlay-change (point))\r