hwhw/kindlepdfviewer — pull request #624 by tigran123 (2012-11-20 23:35:09+00:00)
Title: Re-sort Last Documents list on closing the document and remove unneeded page redraw

This PR contains two unrelated (but minor enough to be combined) commits:

1. Remove unneeded redraw of the current page. The function `UniReader:showHighLight()` internally handles all cases where page redraw is necessary. Therefore, there is no need to redraw
the current page (much less to :goto() to it) on return from it.

2. Re-sort the history list on closing document. The "Last Documents" list is re-sorted on operations that modify it, such as deleting an entry. But opening/closing a document is also one such operation and, therefore, requires re-sorting. This bug was pointed out by user GriMel on the-ebook.org (Russian) forum.