minor cosmetic change

This commit is contained in:
2025-09-23 09:04:18 +01:00
parent 6be1d48b02
commit 505521f5e2

View File

@@ -205,6 +205,7 @@ struct
(* special case: file ends with \n\n, (* special case: file ends with \n\n,
* and cursor is on first \n *) * and cursor is on first \n *)
let let
val buffer = LineGap.goToIdx (startOfLine, buffer)
val newCursorLineNumber = val newCursorLineNumber =
if Cursor.isPrevChrStartOfLine (buffer, startOfLine) then if Cursor.isPrevChrStartOfLine (buffer, startOfLine) then
#lineLength buffer - 1 - count #lineLength buffer - 1 - count