Skip to content

Commit

Permalink
Support multibyte inc/dec with Vd1[+-] ##visual
Browse files Browse the repository at this point in the history
  • Loading branch information
radare committed Nov 14, 2024
1 parent d7d78c9 commit 7ba5b1e
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions libr/core/vmenus.c
Original file line number Diff line number Diff line change
Expand Up @@ -817,10 +817,23 @@ R_API bool r_core_visual_bit_editor(RCore *core) {
}
break;
case '+':
buf[(x/8)]++;
{
const int nbyte = x / 8;
int last = R_MIN (nbyte + wordsize, 8);
for (i = nbyte; i < last; i++) {
buf[i]++;
}
}
break;
case '-':
buf[(x / 8)]--;
//buf[(x / 8)]--;
{
const int nbyte = x / 8;
int last = R_MIN (nbyte + wordsize, 8);
for (i = nbyte; i < last; i++) {
buf[i]--;
}
}
break;
case 'h':
x = R_MAX (x - 1, 0);
Expand Down

0 comments on commit 7ba5b1e

Please sign in to comment.