changeset 23017:3261e4a5f472

(ediff-next-difference, ediff-previous-difference): Handle nil as arg.
author Richard M. Stallman <rms@gnu.org>
date Fri, 14 Aug 1998 04:12:01 +0000
parents a8c034594292
children 114211878bf9
files lisp/ediff-util.el
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ediff-util.el	Fri Aug 14 03:47:10 1998 +0000
+++ b/lisp/ediff-util.el	Fri Aug 14 04:12:01 1998 +0000
@@ -1631,7 +1631,7 @@
   (ediff-barf-if-not-control-buffer)
   (if (< ediff-current-difference ediff-number-of-differences)
       (let ((n (min ediff-number-of-differences
-		    (+ ediff-current-difference arg)))
+		    (+ ediff-current-difference (or arg 1))))
 	    non-clash-skip regexp-skip)
 	    
 	(ediff-visible-region)
@@ -1670,7 +1670,7 @@
   (interactive "p")
   (ediff-barf-if-not-control-buffer)
   (if (> ediff-current-difference -1)
-      (let ((n (max -1 (- ediff-current-difference arg)))
+      (let ((n (max -1 (- ediff-current-difference (or arg 1))))
 	    non-clash-skip regexp-skip)
 	    
 	(ediff-visible-region)