mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
[remote] Slightly modified -remote search
This commit is contained in:
parent
36fc784212
commit
95466e73ed
@ -395,12 +395,15 @@ remote_cmd(struct option *o, unsigned char ***argv, int *argc)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case REMOTE_METHOD_SEARCH:
|
case REMOTE_METHOD_SEARCH:
|
||||||
if (remote_argc < 1)
|
if (remote_argc < 1) {
|
||||||
remote_url = stracpy("");
|
remote_url = stracpy("search:");
|
||||||
else
|
} else {
|
||||||
remote_url = stracpy(remote_argv[0]);
|
remote_url = stracpy(remote_argv[0]);
|
||||||
|
if (remote_url) {
|
||||||
insert_in_string(&remote_url, 0,
|
insert_in_string(&remote_url, 0,
|
||||||
"search:", sizeof("search:") - 1);
|
"search:", sizeof("search:") - 1);
|
||||||
|
}
|
||||||
|
}
|
||||||
remote_session_flags = SES_REMOTE_SEARCH;
|
remote_session_flags = SES_REMOTE_SEARCH;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user