(diff-hunk-file-names): Don't require a TAB after the file name

Fixes: debbugs:20276
This commit is contained in:
Gustav Hållberg 2015-04-08 21:47:50 -04:00 committed by Stefan Monnier
parent 0ae9ae36f0
commit 3d78c5578c

View 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)))