If buffer is empty, do not set line ending

This commit is contained in:
Jeremy Soller 2025-10-09 11:02:00 -06:00
parent 6514323fbe
commit c5deb38cfe
No known key found for this signature in database
GPG key ID: 670FDFB5428E05CA

View file

@ -693,7 +693,7 @@ impl Buffer {
if self.lines.is_empty() {
self.lines.push(BufferLine::new(
"",
LineEnding::default(),
LineEnding::None,
AttrsList::new(attrs),
shaping,
));