Move left at the start of line

This commit is contained in:
Saumya Bhatnagar 2018-05-29 01:09:12 +05:30
parent 038cd5461d
commit 1dc1b82b7d
2 changed files with 3 additions and 0 deletions

BIN
editor

Binary file not shown.

View File

@ -317,6 +317,9 @@ void editorMoveCursor(int c) {
case ARROW_LEFT:
if (E.cursorX != 0) {
E.cursorX--;
} else if (E.cursorY > 0) {
E.cursorY--;
E.cursorX = E.erow[E.cursorY].length;
}
break;
case ARROW_DOWN: