diff options
author | Sebastian Rasmussen <sebras@gmail.com> | 2011-09-19 23:55:29 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2011-09-19 23:58:57 +0200 |
commit | a848a4d942af4f6ccb8bec16d9bc947ab1802f84 (patch) | |
tree | d3f348145230d453791ab63e651b2c26a73a8fe1 | |
parent | 5e4ab352ecb523002221624ed71fb6bf4366c862 (diff) | |
download | mupdf-a848a4d942af4f6ccb8bec16d9bc947ab1802f84.tar.xz |
In X11 viewer, repaint entire page if no match found.
-rw-r--r-- | apps/pdfapp.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/apps/pdfapp.c b/apps/pdfapp.c index 6e0b465b..11ea4220 100644 --- a/apps/pdfapp.c +++ b/apps/pdfapp.c @@ -603,13 +603,8 @@ static void pdfapp_searchforward(pdfapp_t *app, enum panning *panto) } while (app->pageno != startpage); if (app->pageno == startpage) - { pdfapp_warn(app, "String '%s' not found.", app->search); - winrepaintsearch(app); - } - else - winrepaint(app); - + winrepaint(app); wincursor(app, HAND); } @@ -657,13 +652,9 @@ static void pdfapp_searchbackward(pdfapp_t *app, enum panning *panto) } while (app->pageno != startpage); if (app->pageno == startpage) - { pdfapp_warn(app, "String '%s' not found.", app->search); - winrepaintsearch(app); - } - else - winrepaint(app); + winrepaint(app); wincursor(app, HAND); } |