Allow layout to be calculated without specifying width

This commit is contained in:
Jeremy Soller 2024-06-11 08:17:35 -06:00
parent a3a6262e5d
commit b288de13ae
4 changed files with 66 additions and 32 deletions

View file

@ -294,7 +294,7 @@ impl Buffer {
&mut self.scratch,
font_system,
self.metrics.font_size,
self.width,
Some(self.width),
self.wrap,
self.monospace_width,
self.tab_width,
@ -528,7 +528,7 @@ impl Buffer {
&mut self.scratch,
font_system,
self.metrics.font_size,
self.width,
Some(self.width),
self.wrap,
self.monospace_width,
self.tab_width,