Fix bad comma

This commit is contained in:
afonsofrancof 2024-07-31 01:19:07 +01:00
parent bddc943258
commit bc604780ab
No known key found for this signature in database
2 changed files with 1 additions and 2 deletions

View File

@ -130,7 +130,6 @@ impl CustomList {
/// Draw our custom widget to the frame /// Draw our custom widget to the frame
pub fn draw(&mut self, frame: &mut Frame, area: Rect, state: &AppState) { pub fn draw(&mut self, frame: &mut Frame, area: Rect, state: &AppState) {
let item_list: Vec<Line> = if self.filter_query.is_empty() { let item_list: Vec<Line> = if self.filter_query.is_empty() {
let mut items: Vec<Line> = vec![]; let mut items: Vec<Line> = vec![];
// If we are not at the root of our filesystem tree, we need to add `..` path, to be able // If we are not at the root of our filesystem tree, we need to add `..` path, to be able

View File

@ -157,7 +157,7 @@ fn run<B: Backend>(terminal: &mut Terminal<B>, state: &AppState) -> io::Result<(
KeyCode::Char(c) => { KeyCode::Char(c) => {
search_input.push(c); search_input.push(c);
custom_list.filter(search_input.clone()); custom_list.filter(search_input.clone());
}, }
KeyCode::Backspace => { KeyCode::Backspace => {
search_input.pop(); search_input.pop();
custom_list.filter(search_input.clone()); custom_list.filter(search_input.clone());