Fix overflow splitting bug

Closes #93
This commit is contained in:
Patrik Svensson 2020-10-17 12:26:30 +02:00 committed by Patrik Svensson
parent c0875c912a
commit 7ef1ac483a
2 changed files with 2 additions and 1 deletions

View File

@ -1,3 +1,4 @@
using System.Diagnostics;
using Spectre.Console;
namespace TableExample

View File

@ -302,7 +302,7 @@ namespace Spectre.Console.Rendering
// How many characters should we take?
var take = Math.Min(width, totalLength - index);
if (take == 0)
if (take <= 0)
{
// This shouldn't really occur, but I don't like
// never ending loops if it does...