Fix empty damage handling

This commit is contained in:
Kenny Levinsen
2019-08-02 11:19:09 +02:00
parent bc16514f05
commit bdcf83d1c2
+5
View File
@@ -90,6 +90,11 @@ impl App {
mmap.flush().unwrap();
if damage.len() == 0 {
// Nothing to do
return Ok(());
}
// get a buffer and attach it
let new_buffer = pool.buffer(
0,