diff options
author | Sören Tempel <soeren+git@soeren-tempel.net> | 2021-05-24 10:17:50 +0200 |
---|---|---|
committer | Sören Tempel <soeren+git@soeren-tempel.net> | 2021-05-24 10:17:50 +0200 |
commit | 5d9c214d4a517ffd8ff52bfd3baf80596aa8c836 (patch) | |
tree | 59e8a17d149a41e4ae4a9c7b4e7bd8f7ae793a81 /saneterm | |
parent | a777e4298111385c470b13351c6964393360385c (diff) |
history: add docstring to get_entry
Diffstat (limited to 'saneterm')
-rw-r--r-- | saneterm/history.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/saneterm/history.py b/saneterm/history.py index 2b99af8..d79b3dc 100644 --- a/saneterm/history.py +++ b/saneterm/history.py @@ -54,6 +54,11 @@ class History(): self.__con.commit() def get_entry(self, fd, offset): + '''Select an entry by the given offset. The offset is + interpreted relative to the latest entry. That is, + an offset of zero would return the current entry and + an offset of one would return the previous entry. None + is returned if no entry with the given offset exists.''' exe = self.__get_exec(fd) # Select an entry by the given offset. If the offset exceeds the |