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 | |
parent | 17f50de9c561c4bae6401ebc2edad9d75ff096c9 (diff) | |
download | lynx-snapshots-52b82fac17962f62bfab7dbb43381a6b51d356d9.tar.gz |
snapshot of project "lynx", label v2-8-4pre_4
Diffstat (limited to 'src')
-rw-r--r-- | src/GridText.c | 12 | ||||
-rw-r--r-- | src/LYReadCFG.c | 2 |
2 files changed, 7 insertions, 7 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--; diff --git a/src/LYReadCFG.c b/src/LYReadCFG.c index bb4f9191..82f4e8ff 100644 --- a/src/LYReadCFG.c +++ b/src/LYReadCFG.c @@ -264,7 +264,7 @@ PRIVATE CONST char *Color_Strings[16] = "white" }; -#if defined(PDCURSES) +#if defined(PDCURSES) && !defined(XCURSES) /* * PDCurses (and possibly some other implementations) use a non-ANSI set of * codes for colors. |