make vi a command place the cursor correctly

This commit is contained in:
Lisa Milne 2023-12-08 08:19:22 +10:00
parent 6f1c569e67
commit daa5f39fdc

View file

@ -299,7 +299,7 @@ Options:
showAt(topLine);
break;
case 'a':
cursor_col = lines[cursor_line].length;
cursor_col = lines[cursor_line][0].length;
curses.noecho();
mode = 2;
message = 'INSERT';