@@ -470,8 +470,6 @@ pub fn flip_selections(cx: &mut Context) {
471fn enter_insert_mode(doc: &mut Document) {
471fn enter_insert_mode(doc: &mut Document) {
472 doc.mode = Mode::Insert;
472 doc.mode = Mode::Insert;
474− // TODO: store selection for undo
477// inserts at the start of each selection
475// inserts at the start of each selection
@@ -493,10 +491,9 @@ pub fn append_mode(cx: &mut Context) {
494 let text = doc.text().slice(..);
492 let text = doc.text().slice(..);
495 let selection = doc.selection().transform(|range| {
493 let selection = doc.selection().transform(|range| {
496− // TODO: to() + next char
497 Range::new(
494 Range::new(
498 range.from(),
495 range.from(),
499− graphemes::next_grapheme_boundary(text, range.to()),
496+ graphemes::next_grapheme_boundary(text, range.to()), // to() + next char
502 doc.set_selection(selection);
499 doc.set_selection(selection);