summaryrefslogtreecommitdiff
path: root/src/shortcut.c
diff options
context:
space:
mode:
authorDaniel Carl <danielcarl@gmx.de>2014-07-31 01:16:38 +0200
committerDaniel Carl <danielcarl@gmx.de>2014-07-31 01:16:38 +0200
commit92413f9aa0097150c74b00f5690fd5d7b74c53de (patch)
tree6823b046a0b705825afb718790b48a3cf0817d98 /src/shortcut.c
parent555458c31ff9d6bb6232513dd5229b94e9158b90 (diff)
Implemented extended :set syntax.
Added the new :set flavours :set option+=..., :set option-=..., set option^=... like in vim.
Diffstat (limited to 'src/shortcut.c')
-rw-r--r--src/shortcut.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shortcut.c b/src/shortcut.c
index 190f92f..23691dc 100644
--- a/src/shortcut.c
+++ b/src/shortcut.c
@@ -84,7 +84,7 @@ char *shortcut_get_uri(const char *string)
/* if there are only $0 placeholders we don't need to split the parameters */
if (max_num == 0) {
quoted_param = soup_uri_encode(query, "&");
- uri = util_str_replace("$0", quoted_param, tmpl);
+ uri = util_str_replace("$0", quoted_param, tmpl, -1);
g_free(quoted_param);
return uri;
@@ -141,7 +141,7 @@ char *shortcut_get_uri(const char *string)
char *new;
quoted_param = soup_uri_encode(token->str, "&");
- new = util_str_replace((char[]){'$', current_num + '0', '\0'}, quoted_param, uri);
+ new = util_str_replace((char[]){'$', current_num + '0', '\0'}, quoted_param, uri, -1);
g_free(quoted_param);
g_free(uri);
uri = new;