Merge pull request #717 from BDisp/listview-last-col-write

Fixes #714 Allowing ListView writing in the last col.
This commit is contained in:
Charlie Kindel
2020-06-22 08:48:28 -07:00
committed by GitHub

View File

@@ -568,7 +568,7 @@ namespace Terminal.Gui {
for (int i = 0; i < byteLen;) {
(var rune, var size) = Utf8.DecodeRune (ustr, i, i - byteLen);
var count = Rune.ColumnWidth (rune);
if (used + count >= width)
if (used + count > width)
break;
driver.AddRune (rune);
used += count;