mirror of
https://github.com/radareorg/radare2.git
synced 2025-01-19 12:22:43 +00:00
Fix re/av-pag in VV graph view
This commit is contained in:
parent
c8130c4198
commit
e78b561669
@ -25,7 +25,8 @@ static const char *mousemodes[] = {
|
||||
#define MIN_NODE_HEIGTH BORDER_HEIGHT
|
||||
#define TITLE_LEN 128
|
||||
#define DEFAULT_SPEED 1
|
||||
#define PAGEKEY_SPEED 15
|
||||
#define PAGEKEY_SPEED (h/2)
|
||||
/* 15 */
|
||||
#define SMALLNODE_TEXT_CUR "<@@@@@@>"
|
||||
#define SMALLNODE_MIN_WIDTH 8
|
||||
#define SMALLNODE_TITLE_LEN 4
|
||||
@ -367,14 +368,14 @@ static int **get_crossing_matrix (const RGraph *g,
|
||||
}
|
||||
}
|
||||
|
||||
if (n_rows)
|
||||
if (n_rows) {
|
||||
*n_rows = len;
|
||||
}
|
||||
return m;
|
||||
|
||||
err_row:
|
||||
for (i = 0; i < len; ++i) {
|
||||
if (m[i])
|
||||
free (m[i]);
|
||||
for (i = 0; i < len; i++) {
|
||||
free (m[i]);
|
||||
}
|
||||
free (m);
|
||||
return NULL;
|
||||
@ -2615,6 +2616,7 @@ R_API int r_core_visual_graph(RCore *core, RAGraph *g, RAnalFunction *_fcn, int
|
||||
core->cons->event_resize = (RConsEvent)agraph_refresh;
|
||||
|
||||
while (!exit_graph && !is_error) {
|
||||
w = r_cons_get_size (&h);
|
||||
invscroll = r_config_get_i (core->config, "graph.invscroll");
|
||||
ret = agraph_refresh (grd);
|
||||
if (!ret) {
|
||||
@ -2868,7 +2870,7 @@ R_API int r_core_visual_graph(RCore *core, RAGraph *g, RAnalFunction *_fcn, int
|
||||
}
|
||||
break;
|
||||
case 'J':
|
||||
if (okey == 27 && r_cons_readchar () == 126) {
|
||||
if (okey == 27) { // && r_cons_readchar () == 126) {
|
||||
// handle page down key
|
||||
can->sy -= PAGEKEY_SPEED * (invscroll ? -1 : 1);
|
||||
} else {
|
||||
@ -2876,7 +2878,7 @@ R_API int r_core_visual_graph(RCore *core, RAGraph *g, RAnalFunction *_fcn, int
|
||||
}
|
||||
break;
|
||||
case 'K':
|
||||
if (okey == 27 && r_cons_readchar () == 126) {
|
||||
if (okey == 27) { // && r_cons_readchar () == 126) {
|
||||
// handle page up key
|
||||
can->sy += PAGEKEY_SPEED * (invscroll ? -1 : 1);
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user