diff --git a/src/replxx_impl.cxx b/src/replxx_impl.cxx index 2b4193c..e9f332a 100644 --- a/src/replxx_impl.cxx +++ b/src/replxx_impl.cxx @@ -1858,7 +1858,7 @@ Replxx::ACTION_RESULT Replxx::ReplxxImpl::commit_line( char32_t ) { } int Replxx::ReplxxImpl::prev_newline_position( int pos_ ) const { - assert( ( pos_ >= 0 ) && ( pos_ <= _data.length() ) ); + assert( ( pos_ >= -1 ) && ( pos_ <= _data.length() ) ); if ( pos_ == _data.length() ) { -- pos_; }