mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-26 15:57:56 +01:00
Fix bug in ListView that caused it to render spaces off the window
This commit is contained in:
@@ -299,11 +299,14 @@ namespace Terminal.Gui {
|
||||
Driver.SetAttribute (newcolor);
|
||||
current = newcolor;
|
||||
}
|
||||
if (item >= source.Count)
|
||||
|
||||
if (item >= source.Count) {
|
||||
Move(0, row);
|
||||
for (int c = 0; c < f.Width; c++)
|
||||
Driver.AddRune (' ');
|
||||
else
|
||||
Source.Render (isSelected, item, 0, row, f.Width);
|
||||
Driver.AddRune(' ');
|
||||
} else {
|
||||
Source.Render(isSelected, item, 0, row, f.Width);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user