Skip to content

Commit

Permalink
feat: add TreeState get_offset()
Browse files Browse the repository at this point in the history
  • Loading branch information
EdJoPaTo committed Feb 13, 2021
1 parent 5e5ef79 commit 075eb05
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ impl TreeState {
pub fn get_all_opened(&self) -> Vec<TreeIdentifierVec> {
self.opened.iter().cloned().collect()
}

pub fn get_offset(&self) -> usize {
self.offset
}
}

#[derive(Debug, Clone)]
Expand Down

0 comments on commit 075eb05

Please sign in to comment.