How to reproduce
- Create any
*.c file with 4 empty lines.
- Open the file with
kilo, go to the 3rd line, press delete twice
- Now 2 lines remain, and cursor is at the first line. Move to next line
- Enter any character, e.g.,
a
- Segfault
#81 resolves this, please consider merging it.