summaryrefslogtreecommitdiffstats
path: root/src/commands
diff options
context:
space:
mode:
authorJiayi Zhao <jeff.no.zhao@gmail.com>2020-12-06 16:52:29 -0500
committerJiayi Zhao <jeff.no.zhao@gmail.com>2020-12-06 16:52:29 -0500
commitbf9c102a4cfb85a9fd910195e6372dcd1d062c16 (patch)
treee5e2e15234134b303e90ac52c2bf6f060ec10427 /src/commands
parentf18776324dbd78ebc83b748148e63827a8eddb37 (diff)
version bump and code cleanup0.8.5
Diffstat (limited to 'src/commands')
-rw-r--r--src/commands/parent_cursor_move.rs3
-rw-r--r--src/commands/show_hidden.rs1
2 files changed, 1 insertions, 3 deletions
diff --git a/src/commands/parent_cursor_move.rs b/src/commands/parent_cursor_move.rs
index 8234753..87f6d11 100644
--- a/src/commands/parent_cursor_move.rs
+++ b/src/commands/parent_cursor_move.rs
@@ -1,7 +1,6 @@
use crate::context::JoshutoContext;
use crate::error::JoshutoResult;
use crate::history::DirectoryHistory;
-use crate::ui::TuiBackend;
use std::path::PathBuf;
pub fn parent_cursor_move(new_index: usize, context: &mut JoshutoContext) -> JoshutoResult<()> {
@@ -9,7 +8,7 @@ pub fn parent_cursor_move(new_index: usize, context: &mut JoshutoContext) -> Jos
let mut new_index = new_index;
{
- let mut curr_tab = context.tab_context_mut().curr_tab_mut();
+ let curr_tab = context.tab_context_mut().curr_tab_mut();
if let Some(curr_list) = curr_tab.parent_list_mut() {
if curr_list.index.is_some() {
let dir_len = curr_list.contents.len();
diff --git a/src/commands/show_hidden.rs b/src/commands/show_hidden.rs
index 2c381f9..aabc000 100644
--- a/src/commands/show_hidden.rs
+++ b/src/commands/show_hidden.rs
@@ -1,7 +1,6 @@
use crate::context::JoshutoContext;
use crate::error::JoshutoResult;
use crate::history::DirectoryHistory;
-use crate::ui::TuiBackend;
use super::reload;