changeset 31749:a120dbf13af9

(diff-apply-hunk): Jump to the correct line offset in the dry-run case.
author Miles Bader <miles@gnu.org>
date Wed, 20 Sep 2000 06:40:30 +0000
parents 6d580942d64b
children f1d3526d5ebd
files lisp/diff-mode.el
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/diff-mode.el	Wed Sep 20 04:44:35 2000 +0000
+++ b/lisp/diff-mode.el	Wed Sep 20 06:40:30 2000 +0000
@@ -4,7 +4,7 @@
 
 ;; Author: Stefan Monnier <monnier@cs.yale.edu>
 ;; Keywords: patch diff
-;; Revision: $Id: diff-mode.el,v 1.16 2000/09/19 16:24:30 monnier Exp $
+;; Revision: $Id: diff-mode.el,v 1.17 2000/09/19 16:25:43 monnier Exp $
 
 ;; This file is part of GNU Emacs.
 
@@ -1085,7 +1085,7 @@
 
 	    ;; fixup POS to reflect the hunk line offset
 	    (goto-char pos)
-	    (forward-line (cdr new))
+	    (forward-line (cdr (if dry-run old new)))
 	    (setq pos (point)))
 
 	  ;; Display BUF in a window, and maybe select it