mirror of
https://github.com/ilyakooo0/helix.git
synced 2024-11-09 21:56:34 +03:00
Fix delete key.
This commit is contained in:
parent
4189c362b2
commit
4c49197e20
@ -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,
|
||||
)
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user