Merge branch 'capucho/cli-scroll-fix' into 'master'

Fixed the server cli dropping new lines

See merge request veloren/veloren!1449
This commit is contained in:
Marcel 2020-10-24 14:27:33 +00:00
commit 26d174fd81

View File

@ -14,7 +14,8 @@ impl<'a> TuiLog<'a> {
pub fn resize(&self, h: usize) {
let mut inner = self.inner.lock().unwrap();
inner.lines.truncate(h);
let len = inner.lines.len().saturating_sub(h);
inner.lines.drain(..len);
}
}