diff --git a/include/cxxopts.hpp b/include/cxxopts.hpp index f5f2af1..e9ff59e 100644 --- a/include/cxxopts.hpp +++ b/include/cxxopts.hpp @@ -1585,7 +1585,7 @@ namespace cxxopts ++current; ++addNewLine; } - if (addNewLine == 0 && current - startLine >= width) + if (addNewLine == 0 && current >= startLine + width) { if (lastSpace != startLine) {