]> git.eshelyaron.com Git - emacs.git/commitdiff
(diff-hunk-file-names): Don't require a TAB after the file name
authorGustav HÃ¥llberg <gustav@gmail.com>
Thu, 9 Apr 2015 01:47:50 +0000 (21:47 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Thu, 9 Apr 2015 01:47:50 +0000 (21:47 -0400)
Fixes: debbugs:20276
lisp/vc/diff-mode.el

index a9614e95d6d93979e90cb9cd3f6582dd828982cc..948a45e6f5c84fa0d295c7c751affca761be488f 100644 (file)
@@ -821,7 +821,7 @@ If the OLD prefix arg is passed, tell the file NAME of the old file."
          (header-files
            ;; handle filenames with spaces;
            ;; cf. diff-font-lock-keywords / diff-file-header-face
-          (if (looking-at "[-*][-*][-*] \\([^\t]+\\)\t.*\n[-+][-+][-+] \\([^\t]+\\)")
+          (if (looking-at "[-*][-*][-*] \\([^\t\n]+\\).*\n[-+][-+][-+] \\([^\t\n]+\\)")
               (list (if old (match-string 1) (match-string 2))
                     (if old (match-string 2) (match-string 1)))
             (forward-line 1) nil)))