From 4c49197e2021dc4af1e971b663290ec02c5b3bd1 Mon Sep 17 00:00:00 2001 From: Blaž Hrastnik Date: Thu, 1 Oct 2020 16:06:28 +0900 Subject: Fix delete key. --- helix-view/src/commands.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helix-view/src/commands.rs b/helix-view/src/commands.rs index 1309d48a..2b2f1239 100644 --- a/helix-view/src/commands.rs +++ b/helix-view/src/commands.rs @@ -303,8 +303,8 @@ pub fn delete_char_forward(view: &mut View, count: usize) { let text = &view.state.doc.slice(..); let transaction = Transaction::change_by_selection(&view.state, |range| { ( - graphemes::nth_next_grapheme_boundary(text, range.head, count), range.head, + graphemes::nth_next_grapheme_boundary(text, range.head, count), None, ) }); -- cgit v1.2.3-70-g09d2