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 on visual deletion of first or last lines in a file #287

Closed
jrfondren opened this issue May 14, 2019 · 0 comments
Closed

Crash on visual deletion of first or last lines in a file #287

jrfondren opened this issue May 14, 2019 · 0 comments
Assignees
Labels

Comments

@jrfondren
Copy link
Contributor

jrfondren commented May 14, 2019

replication (last line)

  1. start moe without a file argument
  2. o
  3. v
  4. d

This leads (by step 3) to a buffer consisting of

1
2 <CURSOR>

And crashes with

moe.nim(51)              moe
moe.nim(42)              main
visualmode.nim(179)      visualMode
visualmode.nim(118)      visualCommand
visualmode.nim(76)       deleteBuffer
visualmode.nim(62)       yankBuffer
system.nim(2918)         sysFatal
Error: unhandled exception: index out of bounds [IndexError]

replication (first line)

  1. start moe without a file argument
  2. o
  3. 1
  4. k
  5. v
  6. d

This leads (by step 5) to a buffer consisting of

1 <CURSOR>
2 1

And crashes with

moe.nim(88)              moe
moe.nim(75)              main
visualmode.nim(184)      visualMode
visualmode.nim(120)      visualCommand
visualmode.nim(76)       deleteBuffer
visualmode.nim(62)       yankBuffer
system.nim(2918)         sysFatal
Error: unhandled exception: index out of bounds [IndexError]

other info

The failure is seen with both 'master' and 'develop' builds.

@jrfondren jrfondren changed the title Crash on visual deletion of last line in a file Crash on visual deletion of first or last lines in a file May 14, 2019
@fox0430 fox0430 self-assigned this May 14, 2019
@fox0430 fox0430 added the bug label May 14, 2019
fox0430 added a commit that referenced this issue May 14, 2019
@fox0430 fox0430 mentioned this issue May 14, 2019
fox0430 added a commit that referenced this issue May 15, 2019
This reverts commit f7c3583.
fox0430 added a commit that referenced this issue May 19, 2019
@fox0430 fox0430 closed this as completed May 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants