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 when replace mode #787

Closed
fox0430 opened this issue Jul 9, 2020 · 0 comments · Fixed by #789
Closed

Crash when replace mode #787

fox0430 opened this issue Jul 9, 2020 · 0 comments · Fixed by #789
Assignees

Comments

@fox0430
Copy link
Owner

fox0430 commented Jul 9, 2020

Reproduce

  1. Start a moe and open empty buffer
  2. Immediately enter Replace mode and press any key

log

/home/fox/git/moe/src/moe.nim(64) moe
/home/fox/git/moe/src/moe.nim(55) main
/home/fox/git/moe/src/moepkg/replacemode.nim(46) replaceMode
/home/fox/git/moe/src/moepkg/editor.nim(667) replaceCurrentCharacter
/home/fox/.choosenim/toolchains/nim-1.2.2/lib/system/fatal.nim(49) sysFatal
Error: unhandled exception: index out of bounds, the container is empty [IndexError]

moe info

moe v0.2.1
Build type: Debug
@fox0430 fox0430 self-assigned this Jul 9, 2020
fox0430 added a commit that referenced this issue Jul 9, 2020
@fox0430 fox0430 mentioned this issue Jul 9, 2020
fox0430 added a commit that referenced this issue Jul 9, 2020
@fox0430 fox0430 mentioned this issue Jul 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant