fix(pager): memory/cpu usage when using soft-wrap (#827)
Before adoption: this commit came in with the history the project adopted, so no landing records it.
easily reproducible, especially with something like ```sh PAGER="gum pager" man ls ``` Problems here were: - reflow's truncate is not very efficient - useless calls to truncate - bad strings.Replace calls (not necessary, and wouldn't work if text has ansi sequences)
authored by Carlos Alexandro Becker · committed by GitHub · parent e7c916c · Browse files · 3 files+26 added−18 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
3 files+26 added−18 removed
- other:+26 added−18 removed