Add a patch to fix ` ' in the second to last page - pkgsrc-localpatches - leot's pkgsrc LOCALPATCHES
 (HTM) hg clone https://bitbucket.org/iamleot/pkgsrc-localpatches
 (DIR) Log
 (DIR) Files
 (DIR) Refs
       ---
 (DIR) changeset b4b2de761b4ccee87eab09508847e63af4654d40
 (DIR) parent c2f2a7bd70272e68db40f3195bf060845dc189f8
 (HTM) Author: Leonardo Taccari <iamleot@gmail.com>
       Date:   Tue, 19 Nov 2019 15:43:28 
       
       Add a patch to fix ` ' in the second to last page
       
       Already fixed upstream.
       
       Diffstat:
        print/mupdf/patch-platform_x11_pdfapp.c |  18 ++++++++++++++++++
        1 files changed, 18 insertions(+), 0 deletions(-)
       ---
       diff -r c2f2a7bd7027 -r b4b2de761b4c print/mupdf/patch-platform_x11_pdfapp.c
       --- /dev/null   Thu Jan 01 00:00:00 1970 +0000
       +++ b/print/mupdf/patch-platform_x11_pdfapp.c   Tue Nov 19 15:43:28 2019 +0100
       @@ -0,0 +1,18 @@
       +$NetBSD$
       +
       +Fix ` ' on the last page.
       +
       +When ` ' (space) is pressed on the second to last page it doesn't
       +go to the last page.  Adjust the check to DTRT.
       +
       +--- platform/x11/pdfapp.c.orig 2019-08-02 14:49:26.000000000 +0000
       ++++ platform/x11/pdfapp.c
       +@@ -1503,7 +1503,7 @@ void pdfapp_onkey(pdfapp_t *app, int c, 
       +               {
       +                       if (app->imgw + app->panx <= app->winw)
       +                       {
       +-                              if (app->pageno + 1 < app->pagecount)
       ++                              if (app->pageno + 1 <= app->pagecount)
       +                               {
       +                                       app->panx = 0;
       +                                       app->pany = 0;