diff options
author | Sebastian Rasmussen <sebras@gmail.com> | 2011-09-04 03:58:58 +0200 |
---|---|---|
committer | Sebastian Rasmussen <sebras@gmail.com> | 2011-09-04 04:15:28 +0200 |
commit | 1e96e8e23581dc44e04d5133891f477bc9a6c5d6 (patch) | |
tree | b09b21e54639cf99a8aa925e3221f628aeaa304f /apps | |
parent | c0f572131b640fe983fa56ebe6b0377a0e75b05e (diff) | |
download | mupdf-1e96e8e23581dc44e04d5133891f477bc9a6c5d6.tar.xz |
Do not redraw viewer window if the search string is not found.
Diffstat (limited to 'apps')
-rw-r--r-- | apps/pdfapp.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/pdfapp.c b/apps/pdfapp.c index e8575085..e139e06e 100644 --- a/apps/pdfapp.c +++ b/apps/pdfapp.c @@ -603,6 +603,8 @@ static void pdfapp_searchforward(pdfapp_t *app, enum panning *panto) if (app->pageno == startpage) pdfapp_warn(app, "String '%s' not found.", app->search); + else + winrepaint(app); wincursor(app, HAND); } @@ -651,6 +653,8 @@ static void pdfapp_searchbackward(pdfapp_t *app, enum panning *panto) if (app->pageno == startpage) pdfapp_warn(app, "String '%s' not found.", app->search); + else + winrepaint(app); wincursor(app, HAND); } @@ -914,13 +918,11 @@ void pdfapp_onkey(pdfapp_t *app, int c) case 'n': pdfapp_searchforward(app, &panto); - winrepaint(app); loadpage = 0; break; case 'N': pdfapp_searchbackward(app, &panto); - winrepaint(app); loadpage = 0; break; |