fix failing test for 'd$' motion, which means completing tests for 'd$' motion too
This commit is contained in:
@@ -445,6 +445,10 @@ struct
|
|||||||
* after having performed the deletion. *)
|
* after having performed the deletion. *)
|
||||||
val buffer = LineGap.goToIdx (lineStart, buffer)
|
val buffer = LineGap.goToIdx (lineStart, buffer)
|
||||||
val cursorIdx = Cursor.viDlr (buffer, lineStart, 1)
|
val cursorIdx = Cursor.viDlr (buffer, lineStart, 1)
|
||||||
|
val buffer = LineGap.goToIdx (cursorIdx, buffer)
|
||||||
|
val cursorIdx =
|
||||||
|
if Cursor.isOnNewlineAfterChr (buffer, cursorIdx) then cursorIdx - 1
|
||||||
|
else cursorIdx
|
||||||
in
|
in
|
||||||
finishAfterDeletingBuffer (app, cursorIdx, buffer, time, initialMsg)
|
finishAfterDeletingBuffer (app, cursorIdx, buffer, time, initialMsg)
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -84,7 +84,6 @@ struct
|
|||||||
(* load file intol gap buffer and create initial app *)
|
(* load file intol gap buffer and create initial app *)
|
||||||
val io = TextIO.openIn "temp.txt"
|
val io = TextIO.openIn "temp.txt"
|
||||||
val lineGap = ioToLineGap (io, LineGap.empty)
|
val lineGap = ioToLineGap (io, LineGap.empty)
|
||||||
val lineGap = LineGap.fromString "hello\nworld"
|
|
||||||
val _ = TextIO.closeIn io
|
val _ = TextIO.closeIn io
|
||||||
val app = AppType.init (lineGap, 1920, 1080, Time.now ())
|
val app = AppType.init (lineGap, 1920, 1080, Time.now ())
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user