From 4c49197e2021dc4af1e971b663290ec02c5b3bd1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bla=C5=BE=20Hrastnik?= Date: Thu, 1 Oct 2020 16:06:28 +0900 Subject: [PATCH] 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 1309d48a2..2b2f1239e 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, ) });