ui: update unicode-rs and fix invalid iterator return
parent
03b9641bc6
commit
681cd7d1df
|
@ -22,4 +22,4 @@ notify-rust = "^3" # >:c
|
|||
termion = "1.5.1"
|
||||
bincode = "1.0.1"
|
||||
uuid = { version = "0.6", features = ["serde", "v4"] }
|
||||
unicode-segmentation = "1.1.0" # >:c
|
||||
unicode-segmentation = "1.2.1" # >:c
|
||||
|
|
|
@ -72,7 +72,7 @@ impl<'s> Iterator for WordBreakIter<'s> {
|
|||
let next_idx = graphemes[next_idx].0;
|
||||
let ret = &self.input[..next_idx];
|
||||
self.input = &self.input[next_idx + 1..];
|
||||
return Some(&self.input[..next_idx]);
|
||||
return Some(ret);
|
||||
} else {
|
||||
let ret = &self.input[..self.width];
|
||||
self.input = &self.input[self.width..];
|
||||
|
|
Loading…
Reference in New Issue