Fixes the cursor not being showing if the text length is equal to the view width.

This commit is contained in:
BDisp
2022-01-23 23:14:47 +00:00
parent eca55d7d42
commit 4df5897318
2 changed files with 2 additions and 2 deletions

View File

@@ -308,7 +308,7 @@ namespace Terminal.Gui {
col++;
}
break;
} else if (end < t.Count && col > 0 && start < end && col == start) {
} else if ((end < t.Count && col > 0 && start < end && col == start) || (end - col == width - 1)) {
break;
}
col = i;

View File

@@ -1814,7 +1814,7 @@ namespace Terminal.Gui.Views {
col++;
}
break;
} else if (cCol < line.Length && col > 0 && start < cCol && col == start) {
} else if ((cCol < line.Length && col > 0 && start < cCol && col == start) || (cCol - col == width - 1)) {
break;
}
col = i;