Commit eb33e4f
Fix Word Duplication at Wrap Boundaries
suggestLineBreak returns a position in the string, but it was passed
directly as a length to NSRange. On the first fragment this works by
coincidence (position equals length when starting at 0), but on
subsequent fragments the length is too large by startOffset, causing
each CTLine to include characters already rendered in the previous
fragment.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent d7ac3f1 commit eb33e4f
File tree
1 file changed
+2
-1
lines changed- Sources/CodeEditTextView/TextLine/Typesetter
1 file changed
+2
-1
lines changedLines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
184 | | - | |
| 184 | + | |
| 185 | + | |
185 | 186 | | |
186 | 187 | | |
187 | 188 | | |
| |||
0 commit comments