summaryrefslogtreecommitdiffstats
path: root/src/tab.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/tab.rs')
-rw-r--r--src/tab.rs14
1 files changed, 2 insertions, 12 deletions
diff --git a/src/tab.rs b/src/tab.rs
index 369e3eb..72e5ef2 100644
--- a/src/tab.rs
+++ b/src/tab.rs
@@ -16,6 +16,7 @@ use crate::opener::execute_in_child;
use crate::preview::{Directory, Preview};
use crate::selectable_content::SelectableContent;
use crate::shortcut::Shortcut;
+use crate::sort::SortKind;
use crate::trees::FileSystem;
use crate::users::Users;
use crate::utils::{filename_from_path, row_to_window_index, set_clipboard};
@@ -436,7 +437,7 @@ impl Tab {
self.tree = FileSystem::new(
path,
5,
- self.path_content.sort_kind.clone(),
+ SortKind::tree_default(),
users,
self.show_hidden,
&self.filter,
@@ -541,17 +542,6 @@ impl Tab {
self.tree_select_first_child()
}
- /// Select the previous sibling of the current node.
- pub fn select_prev(&mut self) -> Result<()> {
- self.tree.select_prev();
- Ok(())
- }
-
- /// Select the next sibling of the current node.
- pub fn select_next(&mut self) -> Result<()> {
- self.tree.select_next()
- }
-
/// Copy the selected filename to the clipboard. Only the filename.
pub fn filename_to_clipboard(&self) -> Result<()> {
set_clipboard(