summaryrefslogtreecommitdiffstats
path: root/src/tab.rs
diff options
context:
space:
mode:
authorqkzk <qu3nt1n@gmail.com>2023-11-05 14:36:25 +0100
committerqkzk <qu3nt1n@gmail.com>2023-11-05 14:36:25 +0100
commitda41b5907a97326ede110cfeac1f27c9f8aaecd6 (patch)
tree7d34af5d736b9191fcea6edff7f9a9333c9424f1 /src/tab.rs
parentbb1ba31144fef94e4c7fc6d9e99f26bbac952f60 (diff)
select prev
Diffstat (limited to 'src/tab.rs')
-rw-r--r--src/tab.rs18
1 files changed, 8 insertions, 10 deletions
diff --git a/src/tab.rs b/src/tab.rs
index 31d0d6b..9d0cbbe 100644
--- a/src/tab.rs
+++ b/src/tab.rs
@@ -366,12 +366,12 @@ impl Tab {
/// Select the next sibling.
pub fn tree_select_next(&mut self) -> Result<()> {
- self.directory.select_next()
+ self.tree.select_next()
}
/// Select the previous siblging
pub fn tree_select_prev(&mut self) -> Result<()> {
- self.directory.select_prev()
+ self.tree.select_prev()
}
/// Select the first child if any.
@@ -540,16 +540,14 @@ impl Tab {
self.tree_select_first_child()
}
- /// Select the next sibling of the current node.
- pub fn select_next(&mut self) -> Result<()> {
- self.tree.next();
- self.tree_select_next()
- }
-
/// Select the previous sibling of the current node.
pub fn select_prev(&mut self) -> Result<()> {
- self.tree.prev();
- self.tree_select_prev()
+ self.tree.select_prev()
+ }
+
+ /// 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.