emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/ztree 9b980dd 1/2: Issue #80: Wrong directory root in z


From: Stefan Monnier
Subject: [elpa] externals/ztree 9b980dd 1/2: Issue #80: Wrong directory root in ztree-diff
Date: Wed, 14 Apr 2021 18:51:36 -0400 (EDT)

branch: externals/ztree
commit 9b980dde0c5cd69d13d894b5c9cf70759b5f2595
Author: Alexey Veretennikov <fourier@protonmail.ch>
Commit: Alexey Veretennikov <fourier@protonmail.ch>

    Issue #80: Wrong directory root in ztree-diff
    
    Fixed missing implementation of the ztree-node-right-short-name
    in diff-model.
---
 ztree-diff.el | 2 +-
 ztree-view.el | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/ztree-diff.el b/ztree-diff.el
index 44cc101..41d69a1 100644
--- a/ztree-diff.el
+++ b/ztree-diff.el
@@ -558,7 +558,7 @@ unless it is a parent node."
   "Return the short name for a node."
   (ztree-diff-node-short-name-wrapper node nil))
 
-(cl-defmethod ztree-node-short-name ((node ztree-diff-node))
+(cl-defmethod ztree-node-right-short-name ((node ztree-diff-node))
   "Return the short name for a node."
   (ztree-diff-node-short-name-wrapper node t))
 
diff --git a/ztree-view.el b/ztree-view.el
index d79134b..43f86df 100644
--- a/ztree-view.el
+++ b/ztree-view.el
@@ -545,7 +545,7 @@ Argument PATH start node."
          ;; with the offset of the text and relevant side information
          (line-properties (gethash line ztree-line-tree-properties))
          (expandable (ztree-node-expandable-p node))
-         (short-name (ztree-node-short-name node))
+         (short-name (ztree-node-left-short-name node))
          (count-children-left 
           (when (and expandable ztree-show-number-of-children)
             (ignore-errors



reply via email to

[Prev in Thread] Current Thread [Next in Thread]