address bug in text-window.sml: if we want to call getStartLineAfter, then always pass in a positive number

This commit is contained in:
2025-08-04 11:11:18 +01:00
parent b7cdbfbe02
commit f2f93c5760

View File

@@ -187,7 +187,7 @@ struct
else if cursorIdx > absIdx then
(* possibly move downwards *)
getStartLineAfter
( startIdx
( Int.max (startIdx, 0)
, rStrHd
, oldLine
, absIdx