From c8cb2dd9536bfab13257bc5bf134a0ad2f52473d Mon Sep 17 00:00:00 2001 From: Riccardo Schirone Date: Fri, 26 Feb 2021 14:58:55 +0100 Subject: [PATCH] core/cautocmpl: do not add a space when completing env vars --- librz/core/cautocmpl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/librz/core/cautocmpl.c b/librz/core/cautocmpl.c index 792b5c4024e..cb230bed604 100644 --- a/librz/core/cautocmpl.c +++ b/librz/core/cautocmpl.c @@ -161,6 +161,7 @@ static void autocmplt_cmd_arg_file(RzLineNSCompletionResult *res, const char *s, static void autocmplt_cmd_arg_env(RzLineNSCompletionResult *res, const char *s, size_t len) { char **env; + res->end_string = ""; for (env = rz_sys_get_environ(); *env; env++) { const char *eq = strchr(*env, '='); char *envkey = eq ? rz_str_ndup(*env, eq - *env) : strdup(*env);