Skip to content

Commit

Permalink
Fix :e key without the second part
Browse files Browse the repository at this point in the history
  • Loading branch information
radare committed Nov 19, 2023
1 parent 2369267 commit 6ff5a70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/agent/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -295,8 +295,8 @@ export function evalConfig(args: string[]) {
return s;
}
const kv = argstr.split(/=/);
const [k, v] = [kv[0].trim(), kv[1].trim()];
if (kv.length === 2) {
const [k, v] = [kv[0].trim(), kv[1].trim()];
if (get(k) !== undefined) {
if (v === '?') {
return helpFor(kv[0]);
Expand Down

0 comments on commit 6ff5a70

Please sign in to comment.