Fixed result string and line size

This commit is contained in:
mmanolescu 2018-10-10 16:49:40 +03:00
parent f75feab968
commit 3c57aa9af5

View File

@ -1417,8 +1417,10 @@ namespace cxxopts
if (*current == '\n')
{
stringAppend(result, startLine, current + 1);
startLine = current + 1;
lastSpace = startLine;
size = 0;
}
else if (size > width)
{