@@ -823,6 +823,17 @@ pub fn append_mode(cx: &mut Context) {
823 graphemes::next_grapheme_boundary(text, range.to()), // to() + next char
823 graphemes::next_grapheme_boundary(text, range.to()), // to() + next char
827+ let end = text.len_chars();
829+ if selection.iter().any(|range| range.head == end) {
830+ let transaction = Transaction::change(
832+ vec![(end, end, Some(Tendril::from_char('\n')))].into_iter(),
834+ doc.apply(&transaction, view.id);
826 doc.set_selection(view.id, selection);
837 doc.set_selection(view.id, selection);