summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorDaniel Carl <danielcarl@gmx.de>2020-01-04 00:36:31 +0100
committerDaniel Carl <danielcarl@gmx.de>2020-01-04 00:46:59 +0100
commit71693a23e9c3904ed81b35125f0f97ddb2e5fea9 (patch)
treea65ecb6e740ebe8195720acfbdb3679dcc0ea562 /src/main.c
parent6b73a6fc16f1a01d246f4bf5732aea01fc7727bb (diff)
Remove expansion of '%' #584.
The % is often used in urls and in case of the x-hint-command those are feed to :shellcmd and will be replaced by current URL. This made the x-hint-command unusable on some search engines. The expansion of % to the current URL also required to give the current browser state to the expansion logic and to feed it to all callers of this too. This bloated the code. This patch removes the % expansion which was a redundant alternative to $VIMB_URI.
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index 43b470a..e0313a1 100644
--- a/src/main.c
+++ b/src/main.c
@@ -147,7 +147,7 @@ gboolean vb_download_set_destination(Client *c, WebKitDownload *download,
/* Prepare the path to save the download. */
if (path && *path) {
- file = util_build_path(c->state, path, download_path);
+ file = util_build_path(path, download_path);
/* if file is an directory append a file name */
if (g_file_test(file, (G_FILE_TEST_IS_DIR))) {
@@ -156,7 +156,7 @@ gboolean vb_download_set_destination(Client *c, WebKitDownload *download,
g_free(dir);
}
} else {
- file = util_build_path(c->state, suggested_filename, download_path);
+ file = util_build_path(suggested_filename, download_path);
}
g_free(basename);