From f3d0027b120556d16377057b607c934c7fe09e81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Delafargue?= Date: Thu, 9 Feb 2023 18:58:01 +0100 Subject: [PATCH] rename leftover config item --- helix-view/src/document.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/helix-view/src/document.rs b/helix-view/src/document.rs index d308d013f..a8be03f2d 100644 --- a/helix-view/src/document.rs +++ b/helix-view/src/document.rs @@ -1231,11 +1231,8 @@ impl Document { } pub fn text_format(&self, mut viewport_width: u16, theme: Option<&Theme>) -> TextFormat { - if let Some(max_line_len) = self - .language_config() - .and_then(|config| config.max_line_length) - { - viewport_width = viewport_width.min(max_line_len as u16) + if let Some(text_width) = self.language_config().and_then(|config| config.text_width) { + viewport_width = viewport_width.min(text_width as u16) } let config = self.config.load(); let soft_wrap = &config.soft_wrap;