We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cbb8772 commit 164f787Copy full SHA for 164f787
src/grapheme.rs
@@ -781,7 +781,9 @@ impl GraphemeCursor {
781
if self.offset == chunk_start {
782
return Err(GraphemeIncomplete::PrevChunk);
783
}
784
- let mut iter = chunk[..self.offset.saturating_sub(chunk_start)].chars().rev();
+ let mut iter = chunk[..self.offset.saturating_sub(chunk_start)]
785
+ .chars()
786
+ .rev();
787
let mut ch = iter.next().unwrap();
788
loop {
789
0 commit comments