Skip to content

Commit

Permalink
improve symbol for tree
Browse files Browse the repository at this point in the history
  • Loading branch information
ynqa committed Feb 11, 2024
1 parent e50e1ef commit dd2c2dc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/core/tree/render.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ pub struct Renderer {
impl Renderable for Renderer {
fn make_pane(&self, width: u16) -> crate::pane::Pane {
let cursor = |item: &NodeWithDepth| -> &str {
if item.children_visible {
&self.unfolded_cursor
} else {
if item.is_leaf || !item.children_visible {
&self.folded_cursor
} else {
&self.unfolded_cursor
}
};

Expand Down

0 comments on commit dd2c2dc

Please sign in to comment.