Fix delete key.
This commit is contained in:
parent
4189c362b2
commit
4c49197e20
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue