1
0
Fork 0
mirror of https://github.com/helix-editor/helix synced 2024-05-21 04:06:06 +02:00

Fix delete key.

This commit is contained in:
Blaž Hrastnik 2020-10-01 16:06:28 +09:00
parent 4189c362b2
commit 4c49197e20

View File

@ -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,
)
});