diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 2001-07-10 19:48:01 -0400 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 2001-07-10 19:48:01 -0400 |
commit | 52b82fac17962f62bfab7dbb43381a6b51d356d9 (patch) | |
tree | 8ed8a20c2c0f7de987630f016da4a4ef1cbefd22 /src/GridText.c | |
parent | 17f50de9c561c4bae6401ebc2edad9d75ff096c9 (diff) | |
download | lynx-snapshots-52b82fac17962f62bfab7dbb43381a6b51d356d9.tar.gz |
snapshot of project "lynx", label v2-8-4pre_4
Diffstat (limited to 'src/GridText.c')
-rw-r--r-- | src/GridText.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/GridText.c b/src/GridText.c index db8c49d1..ce71b632 100644 --- a/src/GridText.c +++ b/src/GridText.c @@ -7756,12 +7756,12 @@ PRIVATE int www_search_forward ARGS5( if (LYno_attr_strstr(line->data, target)) { tentative_result = count; break; - } else if (line == HTMainText->last_line) { - count = 0; - wrapped = TRUE; } else if (count == start_line && wrapped) { HTUserMsg2(STRING_NOT_FOUND, target); return -1; + } else if (line == HTMainText->last_line) { + count = 0; + wrapped = TRUE; } line = line->next; count++; @@ -7799,12 +7799,12 @@ PRIVATE int www_search_backward ARGS5( if (LYno_attr_strstr(line->data, target)) { tentative_result = count; break; - } else if (line == FirstHTLine(HTMainText)) { - count = line_num_in_text(HTMainText, LastHTLine(HTMainText)) + 1; - wrapped = TRUE; } else if (count == start_line && wrapped) { HTUserMsg2(STRING_NOT_FOUND, target); return -1; + } else if (line == FirstHTLine(HTMainText)) { + count = line_num_in_text(HTMainText, LastHTLine(HTMainText)) + 1; + wrapped = TRUE; } line = line->prev; count--; |