Преглед изворни кода

Spaced out branch lines and fixed bug when ShowBranchLines is off

tznind пре 4 година
родитељ
комит
a95ab9e1ba
1 измењених фајлова са 4 додато и 0 уклоњено
  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())