mirror of
https://github.com/wez/wezterm.git
synced 2024-09-21 03:39:16 +03:00
e6b4aa835a
Adds logic to resize handling that will consider the original logical line length when the width of the terminal is changed. The intent is that this will cause the text to be re-flowed as if it had been printed into the terminal at the new width. Lines that were wrapped due to hittin the margin will be un-wrapped and made into a single logical line, and then split into chunks of the new width. This can cause new lines to be generated in the scrollback when making the terminal narrower. To avoid losing the top of the buffer in that case, the rewrapping logic will prune blank lines off the bottom. This is a pretty simplistic brute force algorithm: each of the lines will be visited and split, and for large scrollback buffers this could be relatively costly with a busy live resize. We don't have much choice in the current implementation. refs: https://github.com/wez/wezterm/issues/14 |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |