Commit 138b07c8 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(ediff-next-difference, ediff-previous-difference): Handle nil as arg.

parent 710ea1b8
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment