diff options
Diffstat (limited to 'platform')
-rw-r--r-- | platform/x11/pdfapp.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/platform/x11/pdfapp.c b/platform/x11/pdfapp.c index 75b0ce0d..17696a04 100644 --- a/platform/x11/pdfapp.c +++ b/platform/x11/pdfapp.c @@ -1011,6 +1011,13 @@ static void pdfapp_search_in_direction(pdfapp_t *app, enum panning *panto, int d { int firstpage, page; + /* abort if no search string */ + if (app->search[0] == 0) + { + winrepaint(app); + return; + } + wincursor(app, WAIT); firstpage = app->pageno; |