Skip to content

Commit

Permalink
Merge pull request ClickHouse#23 from amosbird/fixwrongassertion
Browse files Browse the repository at this point in the history
Fix wrong assertion
  • Loading branch information
alexey-milovidov authored Apr 6, 2022
2 parents 6f0b6f1 + 43a11f3 commit 3fd0e3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/replxx_impl.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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_;
}
Expand Down

0 comments on commit 3fd0e3c

Please sign in to comment.