Parcourir la source

Spaced out branch lines and fixed bug when ShowBranchLines is off

tznind il y a 4 ans
Parent
commit
a95ab9e1ba
1 fichiers modifiés avec 4 ajouts et 0 suppressions
  1. 4 0
      Terminal.Gui/Views/TreeView.cs

+ 4 - 0
Terminal.Gui/Views/TreeView.cs

@@ -752,6 +752,8 @@ namespace Terminal.Gui {
 				for(int i = 0; i < Depth; i++) {
 					yield return new Rune(' ');
 				}
+
+				yield break;
 			}
 
 			// yield indentations with runes appropriate to the state of the parents
@@ -761,6 +763,8 @@ namespace Terminal.Gui {
 					yield return new Rune(' ');
 				else
 					yield return driver.VLine;
+
+				yield return new Rune(' ');
 			}
 
 			if(IsLast())