@@ -2222,7 +2222,7 @@ fn append_mode(cx: &mut Context) {
2224 .expect("selection should always have at least one range");
2224 .expect("selection should always have at least one range");
2225− if !last_range.is_empty() && last_range.head == end {
2225+ if !last_range.is_empty() && last_range.to() == end {
2226 let transaction = Transaction::change(
2226 let transaction = Transaction::change(
2227 doc.text(),
2227 doc.text(),
2228 [(end, end, Some(doc.line_ending.as_str().into()))].into_iter(),
2228 [(end, end, Some(doc.line_ending.as_str().into()))].into_iter(),