diff options
author | wrmr | 2024-11-03 12:59:39 -0500 |
---|---|---|
committer | wrmr | 2024-11-03 12:59:39 -0500 |
commit | e5f222ed0020b0da3d1d6cf43d066d3deb0538b8 (patch) | |
tree | 874207332211ca7a0096efc5ba74415a0af440db /nav.c | |
parent | 9faead33740e7b5b847478518fd3a270a2aa5c2a (diff) |
make doc_line prev and next work more similarly
Diffstat (limited to 'nav.c')
-rw-r--r-- | nav.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |