a bit of formatting

This commit is contained in:
2025-09-25 10:50:02 +01:00
parent bf55373f6d
commit 6b0149162f

View File

@@ -549,7 +549,10 @@ struct
* Otherwise, we want to delete 2 chars by default. *)
val buffer = LineGap.goToIdx (endOfLine, buffer)
val endOfLine =
if Cursor.isCursorAtStartOfLine (buffer, endOfLine) then endOfLine + 1 else endOfLine + 2
if Cursor.isCursorAtStartOfLine (buffer, endOfLine) then
endOfLine + 1
else
endOfLine + 2
in
finishDeleteLineBack (app, buffer, 0, endOfLine, endOfLine, time)
end
@@ -563,7 +566,8 @@ struct
* at the start of this range *)
val buffer = LineGap.goToIdx (endOfLine, buffer)
val endOfLine =
if Cursor.isCursorAtStartOfLine (buffer, endOfLine) then endOfLine else endOfLine + 1
if Cursor.isCursorAtStartOfLine (buffer, endOfLine) then endOfLine
else endOfLine + 1
val buffer = LineGap.goToLine (newCursorLineNumber, buffer)