Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed asm.bytes on by default in cursor mode #10157

Merged
merged 2 commits into from Jun 6, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions libr/core/visual.c
Expand Up @@ -251,6 +251,7 @@ static int visual_help() {
" = set cmd.vprompt (top row)\n"
" | set cmd.cprompt (right column)\n"
" . seek to program counter\n"
" # toggle bytes in disasm view\n"
" \\ toggle visual split mode\n"
" \" toggle the column mode (uses pC..)\n"
" / in cursor mode search in current block\n"
Expand All @@ -274,6 +275,7 @@ static int visual_help() {
" gG go seek to begin and end of file (0-$s)\n"
" hjkl move around (or HJKL) (left-down-up-right)\n"
" i insert hex or string (in hexdump) use tab to toggle\n"
" I insert hexpair block \n"
" mK/'K mark/go to Key (any key)\n"
" M walk the mounted filesystems\n"
" n/N seek next/prev function/flag/hit (scr.nkey)\n"
Expand Down Expand Up @@ -2484,6 +2486,9 @@ R_API int r_core_visual_cmd(RCore *core, const char *arg) {
case ')':
rotateAsmemu (core);
break;
case '#':
r_config_toggle (core->config, "asm.bytes");
break;
case '*':
if (core->print->cur_enabled) {
r_core_cmdf (core, "dr PC=0x%08"PFMT64x, core->offset + core->print->cur);
Expand Down