Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiline input history previous line crash fix #149

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kitaisreal
Copy link

@kitaisreal kitaisreal commented Jul 26, 2023

Replxx crashes during history previous line command, when input contains mutliple consecutive '\n' characters.

Reproducible example:

./replxx-example-cxx-api B
Welcome to Replxx
Press 'tab' to view autocompletions
Type '.help' for help
Type '.quit' or '.exit' to exit

replxx>  
 
replxx> 







replxx> 







replxx> replxx-example-cxx-api: replxx/src/replxx_impl.cxx:1844: int replxx::Replxx::ReplxxImpl::prev_newline_position(int) const: Assertion `( pos_ >= 0 ) && ( pos_ <= _data.length() )' failed.
Aborted (core dumped)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant