From db61972ceccf0cecdd9442c994fa39aa5276bdbb Mon Sep 17 00:00:00 2001 From: EdJoPaTo Date: Sat, 31 Oct 2020 20:30:24 +0100 Subject: [PATCH] fix: reduce indentation --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index cedf0c7..e9c532a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -277,7 +277,7 @@ impl<'a> StatefulWidget for Tree<'a> { } else { "\u{25b6}" // Arrow to right }; - let string = format!("{:>width$}{} ", "", symbol, width = item.depth() * 3); + let string = format!("{:>width$}{} ", "", symbol, width = item.depth() * 2); let max_width = area.width.saturating_sub(after_highlight_symbol_x - x); let (x, _) = buf.set_stringn( after_highlight_symbol_x,