mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-22 05:12:27 +00:00
Fix bad comma
This commit is contained in:
parent
bddc943258
commit
bc604780ab
|
@ -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
|
||||||
|
|
|
@ -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());
|
||||||
|
|
Loading…
Reference in New Issue
Block a user