diff --git a/src/app/browser/window/tab/item/action/history/memory.rs b/src/app/browser/window/tab/item/action/history/memory.rs index ff76ab7a..0fc54f0e 100644 --- a/src/app/browser/window/tab/item/action/history/memory.rs +++ b/src/app/browser/window/tab/item/action/history/memory.rs @@ -51,6 +51,8 @@ impl Memory { } } + /// Get previous history record + /// * change `cursor` position if `follow_to_index` match `true` pub fn back(&self, follow_to_index: bool) -> Option { let index = self.index.borrow(); let len = index.len(); @@ -65,6 +67,8 @@ impl Memory { } } + /// Get next history record + /// * change `cursor` position if `follow_to_index` match `true` pub fn next(&self, follow_to_index: bool) -> Option { let index = self.index.borrow(); let len = index.len();