fix(editor): make return values consistent

This commit is contained in:
Harsh Shandilya 2022-08-11 15:27:03 +05:30
parent 49edd81bce
commit ed2bfa1d3b
No known key found for this signature in database
1 changed files with 4 additions and 2 deletions

View File

@ -151,7 +151,8 @@ impl Editor {
})?;
}
Terminal::show_cursor()?;
Terminal::flush()
Terminal::flush()?;
Ok(())
}
fn draw_welcome_message(&self) {
@ -288,7 +289,8 @@ impl Editor {
Terminal::set_fg_color(STATUS_FG_COLOR)?;
println!("{}\r", status);
Terminal::reset_fg_color()?;
Terminal::reset_bg_color()
Terminal::reset_bg_color()?;
Ok(())
}
fn draw_message_bar(&self) -> Result<(), Error> {