Skip to main content

Module wrap_util

Module wrap_util 

Source
Expand description

Shared word-wrap line counting.

Single source of truth for the word-boundary wrapping algorithm used by both scroll_buffer (history panel) and wrap_input (input area). Must match ratatui’s Wrap { trim: false } behavior.

Extracted from duplicated implementations (#527).

Functions§

visual_line_count
Compute how many visual lines a text string occupies at a given width.