summaryrefslogtreecommitdiffhomepage
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/doc/jao-pdf.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/doc/jao-pdf.el b/lib/doc/jao-pdf.el
index 78d5196..1ee74bc 100644
--- a/lib/doc/jao-pdf.el
+++ b/lib/doc/jao-pdf.el
@@ -60,7 +60,7 @@
(outline jao-pdf--outline)
(cur-page 0)
(cur-title (jao-pdf-title (or file-name buffer-file-name "title"))))
- (while (and (car outline) (< cur-page page))
+ (while (and (car outline) page (< cur-page page))
(setq cur-page (cdr (assoc 'page (car outline))))
(when (<= cur-page page)
(setq cur-title (cdr (assoc 'title (car outline)))))