changeset 102463:8e50ad0da4e8

(vc-annotate): Use widened line number (Bug#2612).
author Chong Yidong <cyd@stupidchicken.com>
date Tue, 10 Mar 2009 00:59:09 +0000
parents bb3e98d00c39
children c03f234287b6
files lisp/vc-annotate.el
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/vc-annotate.el	Tue Mar 10 00:59:00 2009 +0000
+++ b/lisp/vc-annotate.el	Tue Mar 10 00:59:09 2009 +0000
@@ -362,7 +362,10 @@
          ;; If BUF is specified, we presume the caller maintains current line,
          ;; so we don't need to do it here.  This implementation may give
          ;; strange results occasionally in the case of REV != WORKFILE-REV.
-         (current-line (or move-point-to (unless buf (line-number-at-pos)))))
+         (current-line (or move-point-to (unless buf
+					   (save-restriction
+					     (widen)
+					     (line-number-at-pos))))))
     (message "Annotating...")
     ;; If BUF is specified it tells in which buffer we should put the
     ;; annotations.  This is used when switching annotations to another