From 5d18c0587d427adeb36d791609864610ff8dbe2a Mon Sep 17 00:00:00 2001 From: Nbiba Bedis Date: Tue, 3 Dec 2019 19:01:25 +0100 Subject: [PATCH] fix clear --- src/irust/writer.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/irust/writer.rs b/src/irust/writer.rs index 522b20dd..7506e1a6 100644 --- a/src/irust/writer.rs +++ b/src/irust/writer.rs @@ -55,6 +55,7 @@ impl IRust { pub fn clear(&mut self) -> Result<(), IRustError> { self.raw_terminal.clear(ClearType::All)?; + self.buffer.clear(); self.buffer.goto_start(); self.cursor.pos.starting_pos = (0, 0); self.cursor.goto(4, 0);