From 111b313f8a8eecdd6a6127cf5a605eeac31ec1f4 Mon Sep 17 00:00:00 2001 From: Felix Esch Date: Sat, 4 Jan 2020 13:13:18 +0100 Subject: [PATCH] Fix assertion failure (issue #217) --- include/cxxopts.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/include/cxxopts.hpp b/include/cxxopts.hpp index 93c69d3..1644692 100644 --- a/include/cxxopts.hpp +++ b/include/cxxopts.hpp @@ -1559,6 +1559,7 @@ namespace cxxopts stringAppend(result, "\n"); stringAppend(result, start, ' '); startLine = lastSpace + 1; + lastSpace = startLine; } size = 0; }