diff --git a/fcore/normal-mode/normal-move.sml b/fcore/normal-mode/normal-move.sml index ea8f0bb..a8acc8e 100644 --- a/fcore/normal-mode/normal-move.sml +++ b/fcore/normal-mode/normal-move.sml @@ -205,6 +205,7 @@ struct (* special case: file ends with \n\n, * and cursor is on first \n *) let + val buffer = LineGap.goToIdx (startOfLine, buffer) val newCursorLineNumber = if Cursor.isPrevChrStartOfLine (buffer, startOfLine) then #lineLength buffer - 1 - count