From 588e9144704e916c2442b78a5c2e62e06f31e37d Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Thu, 22 Nov 2007 19:09:20 +0100 Subject: [PATCH] bug 978: Python's webbrowser.open_new_tab(URL) works since now. --- NEWS | 1 + src/config/cmdline.c | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/NEWS b/NEWS index 517e7f84..d6d0015b 100644 --- a/NEWS +++ b/NEWS @@ -316,6 +316,7 @@ To be released as 0.11.4. * build: disable GCC 4.2 warning about builtin_modules * minor build bug 960: fix errors in loadmsgcat.c if mmap() exists but munmap() doesn't +* bug 978: Python's webbrowser.open_new_tab(URL) works since now ////////////////////////////////////////////////////////////////////// The following changes should be removed from NEWS before ELinks 0.11.4 diff --git a/src/config/cmdline.c b/src/config/cmdline.c index 27eb83b8..b4787b24 100644 --- a/src/config/cmdline.c +++ b/src/config/cmdline.c @@ -299,9 +299,12 @@ remote_cmd(struct option *o, unsigned char ***argv, int *argc) } else { end = strchr(start, ','); - if (!end) + if (!end) { end = start + strlen(start); - arg = end; + arg = end; + } else { + arg = end + 1; + } skipback_whitespace(start, end); if (start != end) -- 2.11.4.GIT