@@ -470,8 +470,6 @@ pub fn flip_selections(cx: &mut Context) {
470470
471471fn enter_insert_mode(doc: &mut Document) {
472472 doc.mode = Mode::Insert;
473−
474− // TODO: store selection for undo
475473}
476474
477475// inserts at the start of each selection
@@ -493,10 +491,9 @@ pub fn append_mode(cx: &mut Context) {
493491
494492 let text = doc.text().slice(..);
495493 let selection = doc.selection().transform(|range| {
496− // TODO: to() + next char
497494 Range::new(
498495 range.from(),
499− graphemes::next_grapheme_boundary(text, range.to()),
496+ graphemes::next_grapheme_boundary(text, range.to()), // to() + next char
500497 )
501498 });
502499 doc.set_selection(selection);