Skip to content

Commit

Permalink
core/cautocmpl: do not add a space when completing env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
ret2libc committed Mar 1, 2021
1 parent fa2028e commit c8cb2dd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions librz/core/cautocmpl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c8cb2dd

Please sign in to comment.