aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBlaž Hrastnik2020-10-01 07:06:28 +0000
committerBlaž Hrastnik2020-10-01 07:06:28 +0000
commit4c49197e2021dc4af1e971b663290ec02c5b3bd1 (patch)
tree4d4d11fb37fcad96dc4989d08745e7648cb9f60e
parent4189c362b2e0216487aff74885331a1cb95e972b (diff)
Fix delete key.
-rw-r--r--helix-view/src/commands.rs2
1 files changed, 1 insertions, 1 deletions
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,
)
});