Browse Source

text-processing: small line_break.rs fix

tags/v1
Manos Pitsidianakis 2 years ago
parent
commit
c62c04e1e7
Signed by: epilys GPG Key ID: 73627C2F690DF710
  1. 3
      text_processing/src/line_break.rs

3
text_processing/src/line_break.rs

@ -670,6 +670,9 @@ impl<'a> Iterator for LineBreakCandidateIter<'a> {
self.iter.next();
return self.next();
}
_ if next_char.is_none() => {
return None;
}
_ => {
*pos += grapheme.len();
return Some((*pos - grapheme.len(), BreakAllowed));

Loading…
Cancel
Save