a bit of formatting
This commit is contained in:
@@ -549,7 +549,10 @@ struct
|
|||||||
* Otherwise, we want to delete 2 chars by default. *)
|
* Otherwise, we want to delete 2 chars by default. *)
|
||||||
val buffer = LineGap.goToIdx (endOfLine, buffer)
|
val buffer = LineGap.goToIdx (endOfLine, buffer)
|
||||||
val endOfLine =
|
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
|
in
|
||||||
finishDeleteLineBack (app, buffer, 0, endOfLine, endOfLine, time)
|
finishDeleteLineBack (app, buffer, 0, endOfLine, endOfLine, time)
|
||||||
end
|
end
|
||||||
@@ -563,7 +566,8 @@ struct
|
|||||||
* at the start of this range *)
|
* at the start of this range *)
|
||||||
val buffer = LineGap.goToIdx (endOfLine, buffer)
|
val buffer = LineGap.goToIdx (endOfLine, buffer)
|
||||||
val endOfLine =
|
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)
|
val buffer = LineGap.goToLine (newCursorLineNumber, buffer)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user