branch: scratch/add-vdiff
commit 53c2a6bbd6d531acbaa5e480bb6ba741e440aee6
Author: justbur <[email protected]>
Commit: justbur <[email protected]>

    Fix receiving changes
---
 vdiff.el | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/vdiff.el b/vdiff.el
index 8f5d8e1..addb331 100644
--- a/vdiff.el
+++ b/vdiff.el
@@ -1015,10 +1015,9 @@ the hunk under point or on the immediately preceding 
line."
       (cond ((and receive
                   (setq target-ovrs
                         (or targets (vdiff--target-overlays ovr t))))
-             ;; Assume that
              (let ((pos (overlay-start (car target-ovrs))))
-               (vdiff--with-other-window
-                (vdiff-send-changes pos (1+ pos)))))
+               (with-current-buffer (overlay-buffer (car target-ovrs))
+                 (vdiff-send-changes pos (1+ pos)))))
             ((memq (overlay-get ovr 'vdiff-type)
                    '(change addition))
              (vdiff--transmit-change ovr targets))

Reply via email to