2
0
Эх сурвалжийг харах

Merge branch 'tree-view' of https://github.com/tznind/gui.cs into tree-view

tznind 4 жил өмнө
parent
commit
5014d8ce61

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

@@ -757,6 +757,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
@@ -766,6 +768,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())