Commit fafc65d
committed
Fix word duplication at wrap boundaries
suggestLineBreak returns an absolute position, 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.
Cherry-pick of CodeEditApp#122
Fixes CodeEditApp/CodeEditSourceEditor#3671 parent d7ac3f1 commit fafc65d
1 file changed
Lines changed: 3 additions & 1 deletion
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
184 | | - | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
185 | 187 | | |
186 | 188 | | |
187 | 189 | | |
| |||
0 commit comments