diff options
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; |