:art:

Antonio Scandurra created

Change summary

crates/editor/src/multi_buffer.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Detailed changes

crates/editor/src/multi_buffer.rs 🔗

@@ -752,7 +752,7 @@ impl MultiBuffer {
         let edit_start = new_excerpts.summary().text.bytes;
         new_excerpts.update_last(
             |excerpt| {
-                excerpt.has_trailing_newline = ranges.peek().is_some();
+                excerpt.has_trailing_newline = true;
                 prev_id = excerpt.id.clone();
             },
             &(),