Viewer: Fix jump to previous section not working when viewer is on last section

This commit is contained in:
Kovid Goyal 2020-06-06 11:58:47 +05:30
parent f6944a9407
commit a7c28570ec
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -58,6 +58,8 @@ def get_border_nodes(toc, id_map):
after = node
return True
)
if not before and prev is not None:
before = prev
return before, after