Another silly bug...

This commit is contained in:
Nathan Vegdahl 2018-01-01 03:21:27 -08:00
parent cfcc9ab273
commit 86ca5f9edf

View File

@ -69,7 +69,7 @@ impl Screen {
// Write everything to the tmp_string first. // Write everything to the tmp_string first.
for y in 0..self.h { for y in 0..self.h {
let mut x = 0; let mut x = 0;
write!(out, "{}", termion::cursor::Goto(1, y as u16 + 2)).unwrap(); write!(out, "{}", termion::cursor::Goto(1, y as u16 + 1)).unwrap();
while x < self.w { while x < self.w {
if let Some((style, ref text)) = buf[y * self.w + x] { if let Some((style, ref text)) = buf[y * self.w + x] {
if style != last_style { if style != last_style {