1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05: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,14 +234,15 @@ 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);
}
for (method = 0; remote_methods[method].name; method++) {
unsigned char *name = remote_methods[method].name;