diff options
author | Sebastian Rasmussen <sebras@gmail.com> | 2013-08-01 12:36:25 +0200 |
---|---|---|
committer | Sebastian Rasmussen <sebras@gmail.com> | 2013-08-24 23:38:02 +0200 |
commit | 3d4b03b3d068642a546eeed27b09a16d91e6b883 (patch) | |
tree | 7bfa9a7d1fcc3acd104f3fdbf773f16ef7aa3f0d /platform/x11/pdfapp.c | |
parent | 04a74228e42ecd96c2a4151ab172c958cb652996 (diff) | |
download | mupdf-3d4b03b3d068642a546eeed27b09a16d91e6b883.tar.xz |
Rename varible in pdfapp to relate it to searching.
Diffstat (limited to 'platform/x11/pdfapp.c')
-rw-r--r-- | platform/x11/pdfapp.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/platform/x11/pdfapp.c b/platform/x11/pdfapp.c index 707c0a2a..34e14ac4 100644 --- a/platform/x11/pdfapp.c +++ b/platform/x11/pdfapp.c @@ -863,7 +863,7 @@ static void pdfapp_gotouri(pdfapp_t *app, char *uri) void pdfapp_gotopage(pdfapp_t *app, int number) { - app->isediting = 0; + app->issearching = 0; winrepaint(app); if (app->histlen + 1 == 256) @@ -954,7 +954,7 @@ void pdfapp_onkey(pdfapp_t *app, int c) enum panning panto = PAN_TO_TOP; int loadpage = 1; - if (app->isediting) + if (app->issearching) { int n = strlen(app->search); if (c < ' ') @@ -966,7 +966,7 @@ void pdfapp_onkey(pdfapp_t *app, int c) } if (c == '\n' || c == '\r') { - app->isediting = 0; + app->issearching = 0; if (n > 0) { winrepaintsearch(app); @@ -987,7 +987,7 @@ void pdfapp_onkey(pdfapp_t *app, int c) } if (c == '\033') { - app->isediting = 0; + app->issearching = 0; winrepaint(app); } } @@ -1247,7 +1247,7 @@ void pdfapp_onkey(pdfapp_t *app, int c) */ case '?': - app->isediting = 1; + app->issearching = 1; app->searchdir = -1; app->search[0] = 0; app->hit_count = 0; @@ -1256,7 +1256,7 @@ void pdfapp_onkey(pdfapp_t *app, int c) break; case '/': - app->isediting = 1; + app->issearching = 1; app->searchdir = 1; app->search[0] = 0; app->hit_count = 0; |