Bladeren bron

Spaced out branch lines and fixed bug when ShowBranchLines is off

tznind 4 jaren geleden
bovenliggende
commit
a95ab9e1ba
1 gewijzigde bestanden met toevoegingen van 4 en 0 verwijderingen
  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++) {
 				for(int i = 0; i < Depth; i++) {
 					yield return new Rune(' ');
 					yield return new Rune(' ');
 				}
 				}
+
+				yield break;
 			}
 			}
 
 
 			// yield indentations with runes appropriate to the state of the parents
 			// yield indentations with runes appropriate to the state of the parents
@@ -761,6 +763,8 @@ namespace Terminal.Gui {
 					yield return new Rune(' ');
 					yield return new Rune(' ');
 				else
 				else
 					yield return driver.VLine;
 					yield return driver.VLine;
+
+				yield return new Rune(' ');
 			}
 			}
 
 
 			if(IsLast())
 			if(IsLast())