rename leftover config item

pull/5893/head
Clément Delafargue 2 years ago
parent d1023511bc
commit f3d0027b12
No known key found for this signature in database

@ -1231,11 +1231,8 @@ impl Document {
} }
pub fn text_format(&self, mut viewport_width: u16, theme: Option<&Theme>) -> TextFormat { pub fn text_format(&self, mut viewport_width: u16, theme: Option<&Theme>) -> TextFormat {
if let Some(max_line_len) = self if let Some(text_width) = self.language_config().and_then(|config| config.text_width) {
.language_config() viewport_width = viewport_width.min(text_width as u16)
.and_then(|config| config.max_line_length)
{
viewport_width = viewport_width.min(max_line_len as u16)
} }
let config = self.config.load(); let config = self.config.load();
let soft_wrap = &config.soft_wrap; let soft_wrap = &config.soft_wrap;

Loading…
Cancel
Save