Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'helix-core/src/test.rs')
| -rw-r--r-- | helix-core/src/test.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-core/src/test.rs b/helix-core/src/test.rs index 71c71cce..7183302c 100644 --- a/helix-core/src/test.rs +++ b/helix-core/src/test.rs @@ -65,7 +65,7 @@ pub fn print(s: &str) -> (String, Selection) { let head_at_beg = iter.next_if_eq(&"|").is_some(); let last_grapheme = |s: &str| { UnicodeSegmentation::graphemes(s, true) - .next_back() + .last() .map(String::from) }; |