[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] scratch/add-vdiff 8a51468 025/258: Don't close fold on point on r
From: |
Justin Burkett |
Subject: |
[elpa] scratch/add-vdiff 8a51468 025/258: Don't close fold on point on refresh |
Date: |
Wed, 17 May 2017 08:13:14 -0400 (EDT) |
branch: scratch/add-vdiff
commit 8a51468ec95e92ae3d0532d97a214cd74354e4ee
Author: justbur <address@hidden>
Commit: justbur <address@hidden>
Don't close fold on point on refresh
---
vdiff.el | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/vdiff.el b/vdiff.el
index 8d7afbe..776c429 100644
--- a/vdiff.el
+++ b/vdiff.el
@@ -399,7 +399,15 @@ lines hidden."
(overlay-put a-fold 'vdiff-other-fold b-fold)
(overlay-put b-fold 'display (overlay-get b-fold 'vdiff-fold-text))
(overlay-put b-fold 'vdiff-fold-open nil)
- (overlay-put b-fold 'vdiff-other-fold a-fold))))
+ (overlay-put b-fold 'vdiff-other-fold a-fold)
+ (when (and (eq (current-buffer) a-buffer)
+ (>= (point) (overlay-start a-fold))
+ (<= (point) (overlay-end a-fold)))
+ (vdiff-open-fold (point) (1+ (point))))
+ (when (and (eq (current-buffer) b-buffer)
+ (>= (point) (overlay-start b-fold))
+ (<= (point) (overlay-end b-fold)))
+ (vdiff-open-fold (point) (1+ (point)))))))
(defun vdiff--refresh-overlays ()
(vdiff--remove-all-overlays)
- [elpa] branch scratch/add-vdiff created (now 819ea4b), Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff b6b37a5 022/258: Broaden search for overlays at point, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff 4b7f3d1 004/258: Make buffer names easier to read in functions, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff 1155601 014/258: Fix problem with restarting mode and temp files, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff 1b96390 021/258: Use fringes for open folds, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff 8a51468 025/258: Don't close fold on point on refresh,
Justin Burkett <=
- [elpa] scratch/add-vdiff 4d5299e 031/258: Fix alignment of folds next to subtractions, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff f826315 033/258: Increase default fold padding, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff 3e1169c 043/258: Screenshot showing off theme integration, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff a094450 048/258: Tweak line translation rules for better scrolling, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff 0fd1837 063/258: Update screenshot, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff b02b59e 072/258: Whitespace cleanup, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff b2ba7ab 070/258: Move hydra to main file and avoid dependency, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff bfdfc74 053/258: Modify gitignore, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff d25fe21 054/258: More arg name changes, Justin Burkett, 2017/05/17
- [elpa] scratch/add-vdiff 875e6ce 057/258: Merge pull request #2 from purcell/patch-1, Justin Burkett, 2017/05/17