diff options
author | Blaž Hrastnik | 2021-02-25 07:52:32 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2021-02-25 07:52:32 +0000 |
commit | 8289bd1cb0cf34d26a9f452850081799311e3f45 (patch) | |
tree | 1d8fc45f221c1920361ca535167ea3782ae20cb7 /helix-term | |
parent | 01907b349771106865853dc2ea90aaa0913a7297 (diff) |
minor, fix clippy lint
Diffstat (limited to 'helix-term')
-rw-r--r-- | helix-term/src/commands.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs index 7d7ad0c9..6b1109ba 100644 --- a/helix-term/src/commands.rs +++ b/helix-term/src/commands.rs @@ -470,8 +470,6 @@ pub fn flip_selections(cx: &mut Context) { fn enter_insert_mode(doc: &mut Document) { doc.mode = Mode::Insert; - - // TODO: store selection for undo } // inserts at the start of each selection @@ -493,10 +491,9 @@ pub fn append_mode(cx: &mut Context) { let text = doc.text().slice(..); let selection = doc.selection().transform(|range| { - // TODO: to() + next char Range::new( range.from(), - graphemes::next_grapheme_boundary(text, range.to()), + graphemes::next_grapheme_boundary(text, range.to()), // to() + next char ) }); doc.set_selection(selection); |