fix: Properly find wrapped lines in history buffer

This commit is contained in:
Arvin Verain 2025-02-12 20:47:37 +08:00
parent 50f64d5981
commit f24701e6e2
No known key found for this signature in database
GPG key ID: EC2BB2E0EC3CE2FA

View file

@ -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