diff options
Diffstat (limited to 'kitty/history.c')
-rw-r--r-- | kitty/history.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kitty/history.c b/kitty/history.c index 09c7c0d6..b8d80bfd 100644 --- a/kitty/history.c +++ b/kitty/history.c @@ -207,7 +207,7 @@ as_ansi(HistoryBuf *self, PyObject *callback) { } static inline Line* -get_line(HistoryBuf *self, index_type y, Line *l) { init_line(self, y, l); return l; } +get_line(HistoryBuf *self, index_type y, Line *l) { init_line(self, index_of(self, self->count - y - 1), l); return l; } static PyObject* as_text(HistoryBuf *self, PyObject *args) { |