diff --git a/fcore/app-update.sml b/fcore/app-update.sml index aad8892..92bfb2c 100644 --- a/fcore/app-update.sml +++ b/fcore/app-update.sml @@ -370,6 +370,7 @@ struct let val low = Int.min (cursorIdx, otherIdx) val high = Int.max (cursorIdx, otherIdx) + val high = Cursor.clipIdx (buffer, high) val length = high - low val buffer = LineGap.delete (low, length, buffer) @@ -421,6 +422,7 @@ struct fun helpDeleteLine (app: app_type, buffer, cursorIdx, otherIdx, count) = if count = 0 then let + val otherIdx = Cursor.clipIdx (buffer, otherIdx) val length = otherIdx - cursorIdx val buffer = LineGap.delete (cursorIdx, length, buffer) diff --git a/shf b/shf index d82e1d5..7a7de49 100755 Binary files a/shf and b/shf differ