mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Fixed the server cli dropping new lines
This commit is contained in:
parent
20ee9c77f6
commit
e77cc3eae2
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user