summaryrefslogtreecommitdiffstats
path: root/src/commands/parent_directory.rs
diff options
context:
space:
mode:
authorJiayi Zhao <jeff.no.zhao@gmail.com>2020-02-16 15:45:05 -0500
committerJiayi Zhao <jeff.no.zhao@gmail.com>2020-02-16 15:50:25 -0500
commit98d0ce7e70f9febf804cda7473f5e9f7f180fe91 (patch)
treec8c8dd60d9e6502202b910e64f79cd75b933d05d /src/commands/parent_directory.rs
parentd788f8d740be85bb014ddfa005156723f0a31e99 (diff)
remove ncurses dependency
- clean up code - update theme config - fix localstate tracking file selection not selecting proper files
Diffstat (limited to 'src/commands/parent_directory.rs')
-rw-r--r--src/commands/parent_directory.rs9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/commands/parent_directory.rs b/src/commands/parent_directory.rs
index d7de010..6f654e9 100644
--- a/src/commands/parent_directory.rs
+++ b/src/commands/parent_directory.rs
@@ -14,10 +14,7 @@ impl ParentDirectory {
"parent_directory"
}
- pub fn parent_directory(
- context: &mut JoshutoContext,
- backend: &mut TuiBackend,
- ) -> std::io::Result<()> {
+ pub fn parent_directory(context: &mut JoshutoContext) -> std::io::Result<()> {
let curr_tab = &mut context.tabs[context.curr_tab_index];
if !curr_tab.curr_path.pop() {
return Ok(());
@@ -36,8 +33,8 @@ impl std::fmt::Display for ParentDirectory {
}
impl JoshutoRunnable for ParentDirectory {
- fn execute(&self, context: &mut JoshutoContext, backend: &mut TuiBackend) -> JoshutoResult<()> {
- Self::parent_directory(context, backend)?;
+ fn execute(&self, context: &mut JoshutoContext, _: &mut TuiBackend) -> JoshutoResult<()> {
+ Self::parent_directory(context)?;
Ok(())
}
}