summaryrefslogtreecommitdiff
path: root/lisp/ediff-merg.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/ediff-merg.el')
-rw-r--r--lisp/ediff-merg.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/ediff-merg.el b/lisp/ediff-merg.el
index b08238467df..5a5a2983327 100644
--- a/lisp/ediff-merg.el
+++ b/lisp/ediff-merg.el
@@ -104,8 +104,11 @@ Buffer B."
(make-variable-buffer-local 'ediff-skip-merge-regions-that-differ-from-default)
;; check if there is no clash between the ancestor and one of the variants.
+;; if it is not a merge job then return true
(defsubst ediff-merge-region-is-non-clash (n)
- (string-match "prefer" (or (ediff-get-state-of-merge n) "")))
+ (if (ediff-merge-job)
+ (string-match "prefer" (or (ediff-get-state-of-merge n) ""))
+ t))
;; If ediff-show-clashes-only, check if there is no clash between the ancestor
;; and one of the variants.