From f24701e6e22661b768c5169eda016b0ee5baedfa Mon Sep 17 00:00:00 2001 From: Arvin Verain Date: Wed, 12 Feb 2025 20:47:37 +0800 Subject: [PATCH] fix: Properly find wrapped lines in history buffer --- kitty/history.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kitty/history.c b/kitty/history.c index 3d0ec36d9..fbe9e93ca 100644 --- a/kitty/history.c +++ b/kitty/history.c @@ -198,7 +198,7 @@ historybuf_init_line(HistoryBuf *self, index_type lnum, Line *l) { bool historybuf_is_line_continued(HistoryBuf *self, index_type lnum) { - return hb_line_is_continued(self, index_of(self, lnum + 1)); + return hb_line_is_continued(self, index_of(self, lnum)); } bool