diff options
Diffstat (limited to 'helix-core/src/wrap.rs')
-rw-r--r-- | helix-core/src/wrap.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/helix-core/src/wrap.rs b/helix-core/src/wrap.rs index eabc47d4..2ba8d173 100644 --- a/helix-core/src/wrap.rs +++ b/helix-core/src/wrap.rs @@ -2,6 +2,6 @@ use smartstring::{LazyCompact, SmartString}; /// Given a slice of text, return the text re-wrapped to fit it /// within the given width. -pub fn reflow_hard_wrap(text: &str, max_line_len: usize) -> SmartString<LazyCompact> { - textwrap::refill(text, max_line_len).into() +pub fn reflow_hard_wrap(text: &str, text_width: usize) -> SmartString<LazyCompact> { + textwrap::refill(text, text_width).into() } |