[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] scratch/add-vdiff 0dc9fde 114/258: Try not to move point on chang
From: |
Justin Burkett |
Subject: |
[elpa] scratch/add-vdiff 0dc9fde 114/258: Try not to move point on change transmission |
Date: |
Wed, 17 May 2017 08:13:34 -0400 (EDT) |
branch: scratch/add-vdiff
commit 0dc9fde4338b9d890aeee3e7c6ec781b38947911
Author: justbur <address@hidden>
Commit: justbur <address@hidden>
Try not to move point on change transmission
---
vdiff.el | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/vdiff.el b/vdiff.el
index 7380ee2..e0f4d2e 100644
--- a/vdiff.el
+++ b/vdiff.el
@@ -815,11 +815,11 @@ changes under point or on the immediately preceding line."
(overlay-start ovr)
(overlay-end ovr))))
(with-current-buffer (vdiff--other-buffer)
- (goto-char (overlay-start other-ovr))
- (unless addition
- (delete-region (overlay-start other-ovr)
- (overlay-end other-ovr)))
(save-excursion
+ (goto-char (overlay-start other-ovr))
+ (unless addition
+ (delete-region (overlay-start other-ovr)
+ (overlay-end other-ovr)))
(insert text))
(delete-overlay other-ovr))
(delete-overlay ovr))))
@@ -833,7 +833,8 @@ just deleting text in the other buffer."
(when other-ovr
(with-current-buffer (vdiff--other-buffer)
(delete-region (overlay-start other-ovr)
- (overlay-end other-ovr)))))))
+ (overlay-end other-ovr))
+ (delete-overlay other-ovr))))))
;; * Scrolling and line syncing
- [elpa] scratch/add-vdiff 69c85cb 080/258: Better way to trigger other window update, (continued)
- [elpa] scratch/add-vdiff 69c85cb 080/258: Better way to trigger other window update, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff cce8eb1 086/258: Don't close fold on point after change, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff 8a88f84 074/258: Use simpler strategy for updating windows on line move, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff c5589a1 089/258: Delete temp files on deactivation, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff 4dc6c89 077/258: Add next/prev fold commands and update hydra, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff 4ea6afb 082/258: Add docstrings and rearrange some calls, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff 52c675a 096/258: Add hydra screenshot, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff 1276208 103/258: Recenter after next/prev hunk, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff 4ee7fca 104/258: Set intangible property for closed folds, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff 16eb802 107/258: Update README, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff 0dc9fde 114/258: Try not to move point on change transmission,
Justin Burkett <=
- [elpa] scratch/add-vdiff cc24574 115/258: Fix scroll update for other subtraction styles, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff c912ebc 120/258: Don't use window-size-change-hook, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff 7561f87 100/258: Split line maps, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff 32756c3 131/258: A little better than a WIP now, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff 5a6623f 012/258: Update README, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff e178a90 017/258: One more fold fix, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff e6e87f3 019/258: Add screenshot, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff d77dd83 032/258: Take care to only remove vdiff overlays on refresh, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff f915562 047/258: Use customizable function to format closed fold strings, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff d8a4efb 023/258: Remove unused variable, Justin Burkett, 2017/05/17