Treat "---" separator lines as part of the following rev.
Fixes: debbugs:14169
+2013-04-27 Glenn Morris <rgm@gnu.org>
+
+ * vc/log-view.el (log-view-current-entry):
+ Treat "---" separator lines as part of the following rev. (Bug#14169)
+
2013-04-27 Juri Linkov <juri@jurta.org>
* subr.el (read-number): Doc fix about using it by interactive
result)
(save-excursion
(when pos (goto-char pos))
- (forward-line 1)
+ (forward-line 0)
+ ;; Treat "---" separator lines as part of the following revision.
+ (forward-line (if (looking-at "-\\{20,\\}$") 2 1))
(while looping
(setq pos (re-search-backward log-view-message-re nil 'move)
looping (and pos (log-view-inside-comment-p (point)))))