From c9ce4260e5d8369451c12eeec146d6bbffd90066 Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Thu, 26 Oct 2006 21:01:01 +0200 Subject: [PATCH] elinks -remote 'ping' says: ELinks: No remote session to connect to. but should say: ELinks: No running ELinks found. --- src/config/cmdline.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/config/cmdline.c b/src/config/cmdline.c index 113287f6b..64658485e 100644 --- a/src/config/cmdline.c +++ b/src/config/cmdline.c @@ -234,16 +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; + if (!argend) { + /* Just open any passed URLs in new tabs */ + remote_session_flags |= SES_REMOTE_NEW_TAB; + return NULL; + } + skipback_whitespace(arg, argend); } - skipback_whitespace(arg, argend); - for (method = 0; remote_methods[method].name; method++) { unsigned char *name = remote_methods[method].name;