mirror of
https://github.com/m00natic/vlfi.git
synced 2025-01-18 20:10:47 +00:00
Refine diff adjustment and in case of equality after it - make another
search for difference.
This commit is contained in:
parent
9646b00215
commit
82fd5b943b
@ -168,7 +168,7 @@ bytes added to the end."
|
||||
(point-max)))))))
|
||||
(cond ((< vlf-start-pos start)
|
||||
(let* ((del-pos (byte-to-position
|
||||
(- start vlf-start-pos)))
|
||||
(1+ (- start vlf-start-pos))))
|
||||
(del-len (length (encode-coding-region
|
||||
(point-min) del-pos
|
||||
buffer-file-coding-system
|
||||
|
@ -177,6 +177,9 @@ of difference list."
|
||||
(when (< 0 ediff-number-of-differences)
|
||||
(vlf-ediff-adjust buffer-A buffer-B t)
|
||||
(vlf-ediff-adjust buffer-A buffer-B)
|
||||
(if (< 0 ediff-number-of-differences)
|
||||
(save-excursion
|
||||
(vlf-ediff-next buffer-A buffer-B 'vlf-next-chunk)))
|
||||
(ediff-jump-to-difference 1)))
|
||||
ad-do-it))
|
||||
|
||||
@ -198,6 +201,9 @@ beginning of difference list."
|
||||
(when (< 0 ediff-number-of-differences)
|
||||
(vlf-ediff-adjust buffer-A buffer-B)
|
||||
(vlf-ediff-adjust buffer-A buffer-B t)
|
||||
(if (< 0 ediff-number-of-differences)
|
||||
(save-excursion
|
||||
(vlf-ediff-next buffer-A buffer-B 'vlf-prev-chunk)))
|
||||
(ediff-jump-to-difference -1)))
|
||||
ad-do-it))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user