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:
parent
a001cfda17
commit
eb2c64633c
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user