Crash when trying to delete with cursor at the end of the line
lukasmican opened this issue · comments
Lukáš Mičan commented
When some text is in the input line and the cursor is at the end of the text, after pressing 'delete' the program crashes.
Steps to reproduce:
- Start kalc
- Enter some text or numbers
- Press 'delete'
Result:
>>> kalc
> asdfthread 'main' panicked at kalc-1.1.0/src/main.rs:885:35:
removal index (is 4) should be < len (is 4)
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
zsh: IOT instruction (core dumped) kalc
Mikael Walhelm commented
whoops, fixed in 74ce727