Make sure magit-log-edit-set-fields works properly when there are no headers.
Before, if there were no headers but there was a header line, an extra header line was added.
This commit is contained in:
parent
5744d3ec98
commit
6e0de30947
1 changed files with 1 additions and 1 deletions
2
magit.el
2
magit.el
|
@ -3115,7 +3115,7 @@ Prefix arg means justify as well."
|
|||
(let ((buf (get-buffer-create magit-log-edit-buffer-name)))
|
||||
(with-current-buffer buf
|
||||
(goto-char (point-min))
|
||||
(if (search-forward-regexp (format "^\\([A-Za-z0-9-_]+:.*\n\\)+%s"
|
||||
(if (search-forward-regexp (format "^\\([A-Za-z0-9-_]+:.*\n\\)*%s"
|
||||
(regexp-quote magit-log-header-end))
|
||||
nil t)
|
||||
(delete-region (match-beginning 0) (match-end 0)))
|
||||
|
|
Loading…
Reference in a new issue