aboutsummaryrefslogtreecommitdiff
path: root/src/sync.rs
diff options
context:
space:
mode:
authorChristian Duerr <contact@christianduerr.com>2018-04-22 14:39:55 +0200
committerJoe Wilm <joe@jwilm.com>2018-06-02 09:56:50 -0700
commitfe749cf0adee1be93fd3473f6d3533fbe892e3dc (patch)
treeae56f0007a3e6c957eda9ed7edc62f15538b0463 /src/sync.rs
parente615d112fb9fffe46121bd9068498b07c4733fa8 (diff)
downloadalacritty-fe749cf0adee1be93fd3473f6d3533fbe892e3dc.tar.gz
alacritty-fe749cf0adee1be93fd3473f6d3533fbe892e3dc.zip
Fix order of lines after resize
There was an issue where the lines would be messed up when the terminal was resized, this was because lines were just added/removed at the end of the buffer instead of the actual end of the terminal (since the end of the terminal might be in the middle of the buffer). This has been fixed by relying on `self.zero` to determine the position of the start of the terminal and then calculating where lines have to be inserted/removed. Some tests have also been added with documentation that should make it a little easier to understand how the process works and how the raw buffer is layed out. This should all work no matter how big the scrollback history and even when the currenty viewport is not at the bottom of the terminal output.
Diffstat (limited to 'src/sync.rs')
0 files changed, 0 insertions, 0 deletions