Skip to content

Commit a34ec63

Browse files
radaretrufae
authored andcommitted
Fix ?vi:123 and ?v:123 commands ##shell
1 parent 7caa951 commit a34ec63

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

libr/core/cmd_help.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -860,6 +860,10 @@ static int cmd_help(void *data, const char *input) {
860860
const char *space = strchr (input, ' ');
861861
if (space) {
862862
n = r_num_math (core->num, space + 1);
863+
} else if (input[1] == ':') {
864+
n = r_num_math (core->num, input + 2);
865+
} else if (input[1] && input[2] == ':') {
866+
n = r_num_math (core->num, input + 3);
863867
} else {
864868
n = r_num_math (core->num, "$?");
865869
}

0 commit comments

Comments
 (0)