[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master f037979 74/92: Added rounding at the end of vertical line
From: |
Alexey Veretennikov |
Subject: |
[elpa] master f037979 74/92: Added rounding at the end of vertical line |
Date: |
Thu, 11 Jun 2015 19:48:16 +0000 |
branch: master
commit f0379794a70d7f3879ea204c43c452e484ea19f3
Author: Alexey Veretennikov <address@hidden>
Commit: Alexey Veretennikov <address@hidden>
Added rounding at the end of vertical line
---
README.md | 3 ++-
ztree-view.el | 16 +++++++++++-----
2 files changed, 13 insertions(+), 6 deletions(-)
diff --git a/README.md b/README.md
index 18c5774..b4dae55 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,8 @@
ztree
=====
-Ztree is a project dedicated to implementation of several text-tree
applications inside Emacs. It consists of 2 subprojects: **ztree-diff** and
**ztree-dir**(the basis of **ztree-diff**)
+Ztree is a project dedicated to implementation of several text-tree
applications inside Emacs. It consists of 2 subprojects: **ztree-diff** and
**ztree-dir**(the basis of **ztree-diff**). Available in MELPA
(http://melpa.milkbox.net/#/).
+
ztree-diff
==========
diff --git a/ztree-view.el b/ztree-view.el
index a8b4d6a..d1f71a4 100644
--- a/ztree-view.el
+++ b/ztree-view.el
@@ -346,11 +346,17 @@ list of leafs"
(put-text-property (1- (point)) (point) 'face (if face face
'ztreep-arrow-face))))
(defun ztree-draw-vertical-line (y1 y2 x &optional face)
- (if (> y1 y2)
- (dotimes (y (1+ (- y1 y2)))
- (ztree-draw-char ?\| x (+ y2 y) face))
- (dotimes (y (1+ (- y2 y1)))
- (ztree-draw-char ?\| x (+ y1 y) face))))
+ "Draw a vertical line of '|' characters finishing with '`' character"
+ (let ((count (abs (- y1 y2))))
+ (if (> y1 y2)
+ (progn
+ (dotimes (y count)
+ (ztree-draw-char ?\| x (+ y2 y) face))
+ (ztree-draw-char ?\` x (+ y2 count) face))
+ (progn
+ (dotimes (y count)
+ (ztree-draw-char ?\| x (+ y1 y) face))
+ (ztree-draw-char ?\` x (+ y1 count) face)))))
(defun ztree-draw-horizontal-line (x1 x2 y)
(if (> x1 x2)
- [elpa] master bd7547b 66/92: Add autoload cookies, (continued)
- [elpa] master bd7547b 66/92: Add autoload cookies, Alexey Veretennikov, 2015/06/11
- [elpa] master c81ae1f 65/92: Merge pull request #3 from yasuyk/patch-2, Alexey Veretennikov, 2015/06/11
- [elpa] master 635eb9a 67/92: Merge pull request #4 from yasuyk/patch-3, Alexey Veretennikov, 2015/06/11
- [elpa] master b772a0c 71/92: Merge branch 'master' of github.com:fourier/ztree, Alexey Veretennikov, 2015/06/11
- [elpa] master 557024f 72/92: Merge pull request #6 from jpkotta/master, Alexey Veretennikov, 2015/06/11
- [elpa] master fa043b6 70/92: Fixed issue #5 with electric-indent-mode by turning it off, Alexey Veretennikov, 2015/06/11
- [elpa] master 4086298 68/92: add ztree-find-file as the action for ztree-dir, Alexey Veretennikov, 2015/06/11
- [elpa] master d44da81 69/92: Fixed issue #1 with electric-indent-mode by turning it off, Alexey Veretennikov, 2015/06/11
- [elpa] master 111afc6 73/92: Issue #8: Added hotkey 'x' to toggle between expanded/collapsed state of the current directory and its children, Alexey Veretennikov, 2015/06/11
- [elpa] master 2dd7c7b 75/92: Fixed vertical line for separator - now it is not rounded, Alexey Veretennikov, 2015/06/11
- [elpa] master f037979 74/92: Added rounding at the end of vertical line,
Alexey Veretennikov <=
- [elpa] master 364eced 76/92: Make it work over TRAMP, Alexey Veretennikov, 2015/06/11
- [elpa] master 32db847 78/92: Fixed files with spaces comparison error, Alexey Veretennikov, 2015/06/11
- [elpa] master cefecf1 77/92: Merge pull request #9 from Silex/master, Alexey Veretennikov, 2015/06/11
- [elpa] master 9b1f994 79/92: Fixed tree offset on the right side, Alexey Veretennikov, 2015/06/11
- [elpa] master b217776 80/92: Added reference to zdircmp, Alexey Veretennikov, 2015/06/11
- [elpa] master 7156104 81/92: Updated ztree-diff-filter-list, Alexey Veretennikov, 2015/06/11
- [elpa] master c7a05e8 83/92: Merge pull request #16 from syohex/fix-declarations, Alexey Veretennikov, 2015/06/11
- [elpa] master 39854cd 82/92: Fix variable declarations, Alexey Veretennikov, 2015/06/11
- [elpa] master 22c97ab 87/92: Updated readme with info about ELPA, Alexey Veretennikov, 2015/06/11
- [elpa] master ffd97be 89/92: Preparation for GNU ELPA, Alexey Veretennikov, 2015/06/11