Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: renderer: keep a separate count of lines rendered in the alt screen
We need to keep a separate count of lines rendered in the alt screen and inline mode. This is because when we enter alt screen mode, the cursor position is saved and the alt screen is cleared. Now when we exit the alt screen mode, the cursor position is restored so we don't need to move the cursor to the beginning of the section that we rendered. To fix this, we keep a separate count of lines rendered in the alt screen mode and inline mode. Related: #1013 Fixes: #1241 Fixes: #1248
- Loading branch information