emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master f2546ca 09/22: diff-hl-changes: Handle diffs where only fi


From: Dmitry Gutov
Subject: [elpa] master f2546ca 09/22: diff-hl-changes: Handle diffs where only file mode changed
Date: Fri, 02 Jan 2015 23:46:29 +0000

branch: master
commit f2546cac08af354f4909343c3092a881faa93449
Author: Dmitry Gutov <address@hidden>
Commit: Dmitry Gutov <address@hidden>

    diff-hl-changes: Handle diffs where only file mode changed
    
    Fixes #26
---
 diff-hl.el |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/diff-hl.el b/diff-hl.el
index 2488f4d..b78c939 100644
--- a/diff-hl.el
+++ b/diff-hl.el
@@ -219,7 +219,8 @@
             (with-current-buffer buf-name
               (goto-char (point-min))
               (unless (eobp)
-                (diff-beginning-of-hunk t)
+                (ignore-errors
+                  (diff-beginning-of-hunk t))
                 (while (looking-at diff-hunk-header-re-unified)
                   (let ((line (string-to-number (match-string 3)))
                         (len (let ((m (match-string 4)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]