branch: elpa/annotate
commit 50ba1d719cadd9e2fe90ca2b536b57ade0b22826
Author: cage <cage-invalid@invalid>
Commit: cage <cage-invalid@invalid>

    - used a better regex when checking if a file is in info format.
---
 annotate.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/annotate.el b/annotate.el
index 0e9fa9b0bf..e4b29cea8b 100644
--- a/annotate.el
+++ b/annotate.el
@@ -1243,7 +1243,8 @@ sophisticated way than plain text"
                               (t
                                (let* ((file-contents     (file-contents))
                                       (has-info-p        (string-match "info" 
filename))
-                                      (has-separator-p   (string-match "" 
file-contents))
+                                      (has-separator-p   (string-match "\\(
\\)?\\(\\)?$"
+                                                                       
file-contents))
                                       (has-node-p        (string-match "Node:" 
file-contents)))
                                  (if (or (annotate-info-root-dir-p filename)
                                          (and has-separator-p

Reply via email to