This commit is contained in:
Antonio Scandurra 2022-02-26 14:31:36 +01:00
parent f6b7cbd5cf
commit afea5a3d5e

View file

@ -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();
},
&(),