1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

Merge pull request #100 from sgerwk/master

fix error message when no previous search was performed
This commit is contained in:
rkd77 2021-03-03 09:27:45 +01:00 committed by GitHub
commit cf68380718
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1355,7 +1355,10 @@ move_search_number(struct session *ses, struct document_view *doc_view, int numb
int x, y, step;
enum find_error ret = FIND_ERROR_NONE;
if (number < 0) {
if (doc_view->document->number_of_search_points == 0) {
return FIND_ERROR_NO_PREVIOUS_SEARCH;
}
else if (number < 0) {
ret = FIND_ERROR_HIT_TOP;
if (!get_opt_bool("document.browse.search.wraparound", NULL)) return ret;