]> code.delx.au - gnu-emacs-elpa/commitdiff
diff-hl-previous-hunk: Fix an edge case
authorDmitry Gutov <dgutov@yandex.ru>
Tue, 25 Sep 2012 00:03:28 +0000 (04:03 +0400)
committerDmitry Gutov <dgutov@yandex.ru>
Tue, 25 Sep 2012 00:03:28 +0000 (04:03 +0400)
diff-hl.el

index d237da454d51e15662e7164b27b8fcd47a112df4..fcda8fe8c81bb321de31abc309d959ba278a0666 100644 (file)
@@ -284,7 +284,7 @@ in the source file, or the last line of the hunk above it."
                  (when (and backward (bolp) (not (eobp))) (forward-char))\r
                  (while (not (if backward (bobp) (eobp)))\r
                    (goto-char (if backward\r
-                                  (1- (previous-overlay-change (point)))\r
+                                  (previous-overlay-change (point))\r
                                 (next-overlay-change (point))))\r
                    (let ((o (diff-hl-hunk-overlay-at (point))))\r
                      (when (and o (if backward\r