From 9157e4ef1a65de7da73527ddcf4ac05ffc2ddac8 Mon Sep 17 00:00:00 2001 From: James Campos Date: Sat, 25 Apr 2020 00:45:53 -0700 Subject: readme: mention ? --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/main.rs b/src/main.rs index 332b91e..68f3b46 100644 --- a/src/main.rs +++ b/src/main.rs @@ -402,7 +402,6 @@ impl Bk { stdout.flush().unwrap(); } fn render_help(&self) { - let mut stdout = stdout(); let text = r#" Esc q Quit ? Help @@ -418,8 +417,9 @@ PageDown Right Space f l Page Down Home g Chapter Start End G Chapter End "#; - queue!(stdout, terminal::Clear(terminal::ClearType::All),).unwrap(); + let mut stdout = stdout(); + queue!(stdout, terminal::Clear(terminal::ClearType::All),).unwrap(); for (i, line) in text.lines().enumerate() { queue!(stdout, cursor::MoveTo(0, i as u16), Print(line)).unwrap(); } -- cgit v1.2.3