[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] scratch/add-vdiff 1b96390 021/258: Use fringes for open folds
From: |
Justin Burkett |
Subject: |
[elpa] scratch/add-vdiff 1b96390 021/258: Use fringes for open folds |
Date: |
Wed, 17 May 2017 08:13:14 -0400 (EDT) |
branch: scratch/add-vdiff
commit 1b9639001e72d54129346b36c334120d9224bfbd
Author: justbur <address@hidden>
Commit: justbur <address@hidden>
Use fringes for open folds
---
vdiff.el | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/vdiff.el b/vdiff.el
index 85bb07d..adc488c 100644
--- a/vdiff.el
+++ b/vdiff.el
@@ -695,7 +695,10 @@ in the region."
(let ((other-fold (overlay-get ovr 'vdiff-other-fold)))
(dolist (ovr1 (list ovr other-fold))
(overlay-put ovr1 'vdiff-fold-open t)
- (overlay-put ovr1 'display nil))))))
+ (overlay-put ovr1 'display nil)
+ (overlay-put ovr1 'line-prefix
+ (propertize " "
+ 'display '(left-fringe vertical-bar))))))))
(defun vdiff-close-fold (beg end)
"Close folds between BEG and END, as well as corresponding ones
@@ -708,6 +711,7 @@ folds in the region."
(let ((other-fold (overlay-get ovr 'vdiff-other-fold)))
(dolist (ovr1 (list ovr other-fold))
(overlay-put ovr1 'vdiff-fold-open nil)
+ (overlay-put ovr1 'line-prefix nil)
(overlay-put ovr1 'display
(overlay-get ovr1 'vdiff-fold-text)))))))
- [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 <=
- [elpa] scratch/add-vdiff 8a51468 025/258: Don't close fold on point on refresh, Justin Burkett, 2017/05/17
- [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