if at the end of file you will be on a new empty line. Then if you press the backspace key, you should move to the end of the previous line, which is the actual last line.
Relevant section of main.c:
void editorBackSpace(struct editorBuffer *bufr) {
if (bufr->cy == bufr->numrows){
if at the end of file you will be on a new empty line. Then if you press the backspace key, you should move to the end of the previous line, which is the actual last line.
Relevant section of main.c: void editorBackSpace(struct editorBuffer *bufr) {
if (bufr->cy == bufr->numrows){