add tests for 'yl' motion

This commit is contained in:
2026-01-07 07:52:06 +00:00
parent 407f78ce7a
commit f1dd822d5b
3 changed files with 118 additions and 3 deletions

View File

@@ -33,7 +33,7 @@ struct
val buffer = LineGap.goToIdx (cursorIdx, buffer)
val endOfLineIdx = Cursor.viDlr (buffer, cursorIdx, 1)
val endOfLineIdx = Cursor.viDlr (buffer, cursorIdx, 1) + 1
val high = Cursor.viL (buffer, cursorIdx, count)
val high = Int.min (high, endOfLineIdx)
val length = high - cursorIdx