this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix output appearing before last character instead of after

The cm_len-1 clamp placed decorations one character before the
document end. Use cm_len directly — positions at document length
are valid for block widget decorations in CodeMirror.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

+1 -1
+1 -1
src/editor.ml
··· 65 65 @@ List.map (fun (at, msg) -> 66 66 let at = min at (String.length doc) in 67 67 let at = find_line_ends at doc in 68 - let at = min at (max 0 (cm_len - 1)) in 68 + let at = min at cm_len in 69 69 (at, msg)) 70 70 @@ List.concat 71 71 @@ List.map (fun (loc, lst) -> List.map (fun m -> (loc, m)) lst)