mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
[search] set searched word in setup_session. Refs #76
This commit is contained in:
parent
0989068e5c
commit
08da1d87eb
@ -895,6 +895,10 @@ setup_first_session(struct session *ses, struct uri *uri)
|
||||
static void
|
||||
setup_session(struct session *ses, struct uri *uri, struct session *base)
|
||||
{
|
||||
if (base && !get_opt_bool("document.browse.search.reset", NULL)) {
|
||||
ses->search_word = null_or_stracpy(base->search_word);
|
||||
}
|
||||
|
||||
if (base && have_location(base)) {
|
||||
ses_load(ses, get_uri_reference(cur_loc(base)->vs.uri),
|
||||
NULL, NULL, CACHE_MODE_ALWAYS, TASK_FORWARD);
|
||||
|
@ -1312,7 +1312,6 @@ find_first_search_in_view(struct session *ses, struct document_view *doc_view)
|
||||
static enum frame_event_status
|
||||
move_search_do(struct session *ses, struct document_view *doc_view, int direction)
|
||||
{
|
||||
|
||||
if (!doc_view->document->number_of_search_points) {
|
||||
#ifdef CONFIG_UTF8
|
||||
int utf8 = doc_view->document->options.utf8;
|
||||
|
Loading…
Reference in New Issue
Block a user