mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
Always terminate ELinks when using -remote.
The side effect: ELinks doesn't clear screen with -remote 'openURL(...)'.
This commit is contained in:
parent
aae5caed6a
commit
d2006fd3dd
@ -153,6 +153,8 @@ init(void)
|
|||||||
|
|
||||||
if (!remote_session_flags) {
|
if (!remote_session_flags) {
|
||||||
check_stdio(&url_list);
|
check_stdio(&url_list);
|
||||||
|
} else {
|
||||||
|
program.terminate = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!get_cmd_opt_bool("no-home")) {
|
if (!get_cmd_opt_bool("no-home")) {
|
||||||
@ -208,13 +210,11 @@ init(void)
|
|||||||
usrerror(gettext("No running ELinks found."));
|
usrerror(gettext("No running ELinks found."));
|
||||||
program.retval = RET_PING;
|
program.retval = RET_PING;
|
||||||
}
|
}
|
||||||
program.terminate = 1;
|
|
||||||
|
|
||||||
} else if (remote_session_flags && fd == -1) {
|
} else if (remote_session_flags && fd == -1) {
|
||||||
/* The remote session(s) can not be created */
|
/* The remote session(s) can not be created */
|
||||||
usrerror(gettext("No remote session to connect to."));
|
usrerror(gettext("No remote session to connect to."));
|
||||||
program.retval = RET_REMOTE;
|
program.retval = RET_REMOTE;
|
||||||
program.terminate = 1;
|
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
struct string info;
|
struct string info;
|
||||||
|
Loading…
Reference in New Issue
Block a user