text-processing: small line_break.rs fix

jmap
Manos Pitsidianakis 5 years ago
parent 41d039992c
commit c62c04e1e7
No known key found for this signature in database
GPG Key ID: 73627C2F690DF710

@ -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