2
0
mirror of https://github.com/xvxx/phetch synced 2024-11-15 00:12:50 +00:00
This commit is contained in:
dvkt 2019-12-26 15:05:23 -08:00
parent d475cf1eaa
commit e35f7969dc

View File

@ -177,7 +177,7 @@ impl Menu {
fn render_input(&self) -> String { fn render_input(&self) -> String {
format!( format!(
"{}{}{}Search:\x1b[0m {}{}", "{}{}{}find:\x1b[0m {}{}",
termion::cursor::Goto(1, self.rows() as u16), termion::cursor::Goto(1, self.rows() as u16),
color::Bg(color::White), color::Bg(color::White),
color::Fg(color::Black), color::Fg(color::Black),
@ -526,7 +526,7 @@ impl Menu {
Key::PageDown | Key::Ctrl(' ') => self.action_page_down(), Key::PageDown | Key::Ctrl(' ') => self.action_page_down(),
Key::Char('-') => self.action_page_up(), Key::Char('-') => self.action_page_up(),
Key::Char(' ') => self.action_page_down(), Key::Char(' ') => self.action_page_down(),
Key::Char('i') | Key::Char('/') => { Key::Char('f') | Key::Char('i') | Key::Char('/') => {
self.searching = true; self.searching = true;
Action::Redraw Action::Redraw
} }