Fix sign error with scroll directions

This resolves an issue with the htop process list becoming corrupt.
This commit is contained in:
Joe Wilm 2016-07-01 21:12:30 -07:00
parent ae39d38a15
commit 9e45eea0c9
1 changed files with 2 additions and 2 deletions

View File

@ -466,11 +466,11 @@ impl ansi::Handler for Term {
fn set_horizontal_tabstop(&mut self) { println!("set_horizontal_tabstop"); }
fn scroll_up(&mut self, rows: i64) {
println!("scroll_up: {}", rows);
self.scroll(-rows as isize);
self.scroll(rows as isize);
}
fn scroll_down(&mut self, rows: i64) {
println!("scroll_down: {}", rows);
self.scroll(rows as isize);
self.scroll(-rows as isize);
}
fn insert_blank_lines(&mut self, count: i64) {
println!("insert_blank_lines: {}", count);