mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-01 17:40:34 +00:00
Fix #15963 - Handle / in Vx (visual xrefs) ##visual
This commit is contained in:
parent
f502016c57
commit
51020062bc
@ -1535,7 +1535,7 @@ repeat:
|
||||
/* prepare highlight */
|
||||
char *cmd = strdup (r_config_get (core->config, "scr.highlight"));
|
||||
char *ats = r_str_newf ("%"PFMT64x, curat);
|
||||
if (ats) {
|
||||
if (ats && !*cmd) {
|
||||
(void) r_config_set (core->config, "scr.highlight", ats);
|
||||
}
|
||||
/* print disasm */
|
||||
@ -1568,6 +1568,7 @@ repeat:
|
||||
" JK - step 10 rows\n"
|
||||
" pP - rotate between various print modes\n"
|
||||
" : - run r2 command\n"
|
||||
" / - highlight given word\n"
|
||||
" ? - show this help message\n"
|
||||
" <> - '<' for xrefs and '>' for refs\n"
|
||||
" TAB - toggle between address and function references\n"
|
||||
@ -1595,6 +1596,9 @@ repeat:
|
||||
printMode = lastPrintMode;
|
||||
}
|
||||
goto repeat;
|
||||
} else if (ch == '/') {
|
||||
r_core_cmd0 (core, "?i highlight;e scr.highlight=`yp`");
|
||||
goto repeat;
|
||||
} else if (ch == 'x' || ch == '<') {
|
||||
xref = true;
|
||||
xrefsMode = !xrefsMode;
|
||||
|
Loading…
Reference in New Issue
Block a user