diff --git a/include/external/clara.hpp b/include/external/clara.hpp index 189e16e2..091c2fa8 100644 --- a/include/external/clara.hpp +++ b/include/external/clara.hpp @@ -146,9 +146,9 @@ namespace Catch { namespace clara { namespace TextFlow { m_pos += m_len; if( m_pos < line().size() && line()[m_pos] == '\n' ) m_pos += 1; - - while( m_pos < line().size() && isWhitespace( line()[m_pos] ) ) - ++m_pos; + else + while( m_pos < line().size() && isWhitespace( line()[m_pos] ) ) + ++m_pos; if( m_pos == line().size() ) { m_pos = 0; diff --git a/third_party/clara.hpp b/third_party/clara.hpp index 0cd00b94..509c9b5a 100644 --- a/third_party/clara.hpp +++ b/third_party/clara.hpp @@ -144,9 +144,9 @@ namespace clara { namespace TextFlow { m_pos += m_len; if( m_pos < line().size() && line()[m_pos] == '\n' ) m_pos += 1; - - while( m_pos < line().size() && isWhitespace( line()[m_pos] ) ) - ++m_pos; + else + while( m_pos < line().size() && isWhitespace( line()[m_pos] ) ) + ++m_pos; if( m_pos == line().size() ) { m_pos = 0;