summaryrefslogtreecommitdiffstats
path: root/src/commands/cursor_move.rs
diff options
context:
space:
mode:
authorJiayi Zhao <jeff.no.zhao@gmail.com>2020-12-15 11:48:20 -0500
committerJiayi Zhao <jeff.no.zhao@gmail.com>2020-12-15 11:48:20 -0500
commit12eb9eed1aeb4f3045b78dd19ae20d07bfea7de9 (patch)
treea2204b1fbef5f1ed93312f94196ded9a5a8c6ec5 /src/commands/cursor_move.rs
parentf5902708a6e597064482edfc076248a67882b7c5 (diff)
add option to not collapse preview
- add methods to access config_t - add back home dir path shortening option
Diffstat (limited to 'src/commands/cursor_move.rs')
-rw-r--r--src/commands/cursor_move.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commands/cursor_move.rs b/src/commands/cursor_move.rs
index bad885f..3b9aeda 100644
--- a/src/commands/cursor_move.rs
+++ b/src/commands/cursor_move.rs
@@ -24,7 +24,7 @@ pub fn cursor_move(new_index: usize, context: &mut JoshutoContext) -> JoshutoRes
// get preview
if let Some(path) = path {
if path.is_dir() {
- let sort_options = context.config_t.sort_option.clone();
+ let sort_options = context.config_ref().sort_option.clone();
context
.tab_context_mut()
.curr_tab_mut()