ui: update unicode-rs and fix invalid iterator return

embed
Manos Pitsidianakis 2019-05-01 13:50:17 +03:00
parent 03b9641bc6
commit 681cd7d1df
Signed by: Manos Pitsidianakis
GPG Key ID: 73627C2F690DF710
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -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..];