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.