diff lisp/pcvs.el @ 104916:065958ebbf6d

(cvs-mode-find-file): Use forward-line rather than goto-line.
author Glenn Morris <rgm@gnu.org>
date Thu, 10 Sep 2009 06:23:06 +0000
parents 929f3ad94b86
children d991506f9286
line wrap: on
line diff
--- a/lisp/pcvs.el	Thu Sep 10 06:22:30 2009 +0000
+++ b/lisp/pcvs.el	Thu Sep 10 06:23:06 2009 +0000
@@ -2054,7 +2054,10 @@
 			  (t (if view 'view-buffer 'switch-to-buffer)))
 		    buf)
 	   (when (and cvs-find-file-and-jump (cvs-applicable-p fi 'diff-base))
-	     (goto-line (cvs-find-modif fi)))
+	     (save-restriction
+	       (widen)
+	       (goto-char (point-min))
+	       (forward-line (1- (cvs-find-modif fi)))))
 	   buf))))))