aboutsummaryrefslogtreecommitdiff
path: root/src/lpm.c
diff options
context:
space:
mode:
authorAdam Harrison <adamdharrison@gmail.com>2023-01-14 17:41:14 -0500
committerAdam Harrison <adamdharrison@gmail.com>2023-01-14 17:41:14 -0500
commit9067926de3753dadccecd5b899196ef82e498572 (patch)
treef7a0cd0d69babf38b810d672970b5f95b37669e6 /src/lpm.c
parentaa611fff136a4d401af475e3fe1ca4da877a23d0 (diff)
downloadlite-xl-plugin-manager-9067926de3753dadccecd5b899196ef82e498572.tar.gz
lite-xl-plugin-manager-9067926de3753dadccecd5b899196ef82e498572.zip
Added in %, and allowed branch refs in manifests.
Diffstat (limited to 'src/lpm.c')
-rw-r--r--src/lpm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lpm.c b/src/lpm.c
index 8ad385d..b6df2c9 100644
--- a/src/lpm.c
+++ b/src/lpm.c
@@ -876,6 +876,7 @@ static int lpm_get(lua_State* L) {
if (callback_function) {
lua_pushvalue(L, callback_function);
lua_pushinteger(L, total_downloaded);
+ lua_pushinteger(L, content_length);
lua_call(L, 1, 0);
}
fwrite(buffer, sizeof(char), length, file);