diff --git a/clite/vi.js b/clite/vi.js index 02c5bcd..2d06c2b 100644 --- a/clite/vi.js +++ b/clite/vi.js @@ -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';