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

Crash at rustyline-11.0.0/src/keymap.rs:205:18 #705

Closed
schwidom opened this issue Jun 23, 2023 · 2 comments · Fixed by #706
Closed

Crash at rustyline-11.0.0/src/keymap.rs:205:18 #705

schwidom opened this issue Jun 23, 2023 · 2 comments · Fixed by #706
Labels

Comments

@schwidom
Copy link

schwidom commented Jun 23, 2023

Hi,

when I have rustyline configured the following way:

 let config_builder = rustyline::config::Config::builder()
  .max_history_size(10000)?
  .history_ignore_dups( true)?
  .auto_add_history(true)
  .bell_style(rustyline::config::BellStyle::None)
  .completion_type(rustyline::config::CompletionType::List)
  .edit_mode( rustyline::EditMode::Vi);

 let config = config_builder.build();

(note that vi mode is active)

Later on I am in the commandline via:

rl.readline(">> ");

And I press 'ESC' (so I am in the command mode of the vi mode)
and then I press '.' then it crashes.

>> thread 'main' panicked at 'internal error: entered unreachable code', .../.cargo/registry/src/github.com-1ecc6299db9ec823/rustyline-11.0.0/src/keymap.rs:205:18

'.' in the vi mode is the repetition of the latest command but in this situation there was no latest command yet.

Regards,
Frank Schwidom

@gwenn gwenn added the bug label Jun 23, 2023
@gwenn
Copy link
Collaborator

gwenn commented Jun 23, 2023

Thanks for the detailed bug report.

@gwenn
Copy link
Collaborator

gwenn commented Jun 24, 2023

Version 12.0.0 released

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

Successfully merging a pull request may close this issue.

2 participants