diff options
author | Vincent Sanders <vince@kyllikki.org> | 2019-09-17 23:06:06 +0100 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2019-09-21 10:53:41 +0100 |
commit | 12cca32059cc871245571f59af5e09816fbea094 (patch) | |
tree | d407551439c6d37d1c092b06a6898740bd97f16a /content/handlers/html/html_interaction.c | |
parent | d94afaa0e1bc2d50c68d562f4b5751cd469fa4cb (diff) | |
download | netsurf-12cca32059cc871245571f59af5e09816fbea094.tar.gz netsurf-12cca32059cc871245571f59af5e09816fbea094.tar.bz2 |
fix core find in page behaviour when case sensitivity is toggled
Diffstat (limited to 'content/handlers/html/html_interaction.c')
-rw-r--r-- | content/handlers/html/html_interaction.c | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/content/handlers/html/html_interaction.c b/content/handlers/html/html_interaction.c index 5f165e362..d31ad1d06 100644 --- a/content/handlers/html/html_interaction.c +++ b/content/handlers/html/html_interaction.c @@ -1165,21 +1165,25 @@ bool html_keypress(struct content *c, uint32_t key) /** * Handle search. * - * \param c content of type HTML - * \param context front end private data - * \param flags search flags - * \param string search string + * \param c content of type HTML + * \param context front end private data + * \param flags search flags + * \param string search string */ -void html_search(struct content *c, void *context, - search_flags_t flags, const char *string) +void +html_search(struct content *c, + void *context, + search_flags_t flags, + const char *string) { html_content *html = (html_content *)c; assert(c != NULL); - if (string != NULL && html->search_string != NULL && - strcmp(string, html->search_string) == 0 && - html->search != NULL) { + if ((string != NULL) && + (html->search_string != NULL) && + (strcmp(string, html->search_string) == 0) && + (html->search != NULL)) { /* Continue prev. search */ search_step(html->search, flags, string); |