Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The alternate-screen mode disables scrollback. This means that we delete lines off of the top of the screen when scrolling, without saving them. But we weren't keeping a count of those lines, which meant a stable index was lost; leaving the mux-server unable to properly track scrolling. Now we keep track of the stable_row_index_offset, even when there is no scrollback. This turns out to be the exact same logic as when scrollback is enabled, but after "erase_scrollback" has been called. In both cases, stable_row_index_offset is used to count the number of scrollback-lines, that don't exist in the buffer. As per issue #6166
- Loading branch information