diff options
author | Milan Crha <mcrha@redhat.com> | 2011-08-19 19:54:32 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@gnome-db.org> | 2011-09-14 20:08:51 +0800 |
commit | bf76e14997c10172ac9a26149d414e0983d72c89 (patch) | |
tree | a23d605138afd6cbbfa117b3bc8ed2854b835054 /widgets/misc/e-searching-tokenizer.c | |
parent | aaef7549c7f5a5a498ee5875678b15afcb8fd7f6 (diff) | |
download | gsoc2013-evolution-bf76e14997c10172ac9a26149d414e0983d72c89.tar gsoc2013-evolution-bf76e14997c10172ac9a26149d414e0983d72c89.tar.gz gsoc2013-evolution-bf76e14997c10172ac9a26149d414e0983d72c89.tar.bz2 gsoc2013-evolution-bf76e14997c10172ac9a26149d414e0983d72c89.tar.lz gsoc2013-evolution-bf76e14997c10172ac9a26149d414e0983d72c89.tar.xz gsoc2013-evolution-bf76e14997c10172ac9a26149d414e0983d72c89.tar.zst gsoc2013-evolution-bf76e14997c10172ac9a26149d414e0983d72c89.zip |
Bug #651741 - Find in text message doesn't warn about no matching found
Diffstat (limited to 'widgets/misc/e-searching-tokenizer.c')
-rw-r--r-- | widgets/misc/e-searching-tokenizer.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/widgets/misc/e-searching-tokenizer.c b/widgets/misc/e-searching-tokenizer.c index 3da81e44bd..3720030815 100644 --- a/widgets/misc/e-searching-tokenizer.c +++ b/widgets/misc/e-searching-tokenizer.c @@ -401,7 +401,7 @@ searcher_new (gint flags, s->tage = g_strdup (tage); s->flags = flags; s->state = &s->t->root; - s->matchcount = 0; + s->matchcount = -1; g_queue_init (&s->input); g_queue_init (&s->output); @@ -1019,6 +1019,8 @@ searching_tokenizer_next_token (HTMLTokenizer *tokenizer) next_token (tokenizer); oldmatched = priv->engine->matchcount; + if (priv->engine->matchcount == -1) + priv->engine->matchcount = 0; token = searcher_next_token (priv->engine); |