From e5f222ed0020b0da3d1d6cf43d066d3deb0538b8 Mon Sep 17 00:00:00 2001 From: wrmr Date: Sun, 3 Nov 2024 12:59:39 -0500 Subject: make doc_line prev and next work more similarly --- nav.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nav.c') diff --git a/nav.c b/nav.c index 8f1d699..8df829e 100644 --- a/nav.c +++ b/nav.c @@ -56,7 +56,7 @@ struct doc_line *nav_cur_line(struct nav_state *ns) { int nav_line_up(struct nav_state *ns) { if (ns->cur_ofs[ns->cur_doc] > 0) { - ns->cur_ofs[ns->cur_doc] -= nav_cur_line(ns)->prev; + ns->cur_ofs[ns->cur_doc] -= nav_cur_line(ns)->prev + sizeof(struct doc_line); return 1; } else { return 0; -- cgit 1.4.1-2-gfad0