Explorar o código

Spaced out branch lines and fixed bug when ShowBranchLines is off

tznind %!s(int64=4) %!d(string=hai) anos
pai
achega
a95ab9e1ba
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  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())