1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-09-30 03:26:23 -04:00

Revert c9ce4260e5 (broke URLs as -remote arguments)

Revert commit c9ce4260e5,
which made "elinks -remote http://elinks.cz/" fail with an error
"ELinks: Cannot parse option -remote: Remote method not supported"
even though doc/remote.txt says it should open the URL in a new tab.
This commit is contained in:
Kalle Olavi Niemitalo 2006-11-04 05:06:50 +02:00 committed by Kalle Olavi Niemitalo
parent a001cfda17
commit eb2c64633c

View File

@ -234,15 +234,16 @@ remote_cmd(struct option *o, unsigned char ***argv, int *argc)
skip_space(arg);
argend = strchr(arg, ')');
if (!argend) {
/* Just open any passed URLs in new tabs */
remote_session_flags |= SES_REMOTE_NEW_TAB;
return NULL;
}
skipback_whitespace(arg, argend);
}
if (!argend) {
/* Just open any passed URLs in new tabs */
remote_session_flags |= SES_REMOTE_NEW_TAB;
return NULL;
}
skipback_whitespace(arg, argend);
for (method = 0; remote_methods[method].name; method++) {
unsigned char *name = remote_methods[method].name;