summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorqkzk <qu3nt1n@gmail.com>2023-01-08 16:24:43 +0100
committerqkzk <qu3nt1n@gmail.com>2023-01-08 16:24:43 +0100
commit6cd0db8c78eb3d0e61994303ce0037b95d6e8fc8 (patch)
tree2e03659922d3e4e687e7de9530842d607fdded77
parent0924dc5d7ec79511bf5b0bc21b83fb90a18df74f (diff)
documentation
-rw-r--r--src/tab.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tab.rs b/src/tab.rs
index 82b97ed..0034ba4 100644
--- a/src/tab.rs
+++ b/src/tab.rs
@@ -190,6 +190,7 @@ impl Tab {
self.shortcut.refresh(mount_points)
}
+ /// Select the file at index and move the window to this file.
pub fn go_to_index(&mut self, index: usize) {
self.path_content.select_index(index);
self.window.scroll_to(index);