]> git.eshelyaron.com Git - emacs.git/commitdiff
(ediff-next-difference, ediff-previous-difference): Handle nil as arg.
authorRichard M. Stallman <rms@gnu.org>
Fri, 14 Aug 1998 04:12:01 +0000 (04:12 +0000)
committerRichard M. Stallman <rms@gnu.org>
Fri, 14 Aug 1998 04:12:01 +0000 (04:12 +0000)
lisp/ediff-util.el

index 4b790e4c6c98f847240b1f736b98ffabf5eb37dc..320e6ac5ec87bbdfb169810993dbecc4390bf586 100644 (file)
@@ -1631,7 +1631,7 @@ With a prefix argument, go forward that many differences."
   (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 @@ With a prefix argument, go back that many differences."
   (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)