mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-03 19:01:31 +00:00
Fix scr.wheel glich
This commit is contained in:
parent
5122d2b9be
commit
f2ba098deb
@ -1938,12 +1938,6 @@ static bool cb_fps(void *user, void *data) {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool cb_scrwheel(void* user, void* data) {
|
|
||||||
RConfigNode *node = (RConfigNode*) data;
|
|
||||||
r_cons_enable_mouse (node->i_value);
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
static bool cb_scrbreakword(void* user, void* data) {
|
static bool cb_scrbreakword(void* user, void* data) {
|
||||||
RConfigNode *node = (RConfigNode*) data;
|
RConfigNode *node = (RConfigNode*) data;
|
||||||
if (*node->value) {
|
if (*node->value) {
|
||||||
@ -3417,7 +3411,7 @@ R_API int r_core_config_init(RCore *core) {
|
|||||||
#endif
|
#endif
|
||||||
SETPREF ("scr.wheel.nkey", "false", "Use sn/sp and scr.nkey on wheel instead of scroll");
|
SETPREF ("scr.wheel.nkey", "false", "Use sn/sp and scr.nkey on wheel instead of scroll");
|
||||||
// RENAME TO scr.mouse
|
// RENAME TO scr.mouse
|
||||||
SETCB ("scr.wheel", "true", &cb_scrwheel, "Mouse wheel in Visual; temporaryly disable/reenable by right click/Enter)");
|
SETPREF ("scr.wheel", "true", "Mouse wheel in Visual; temporaryly disable/reenable by right click/Enter)");
|
||||||
// DEPRECATED: USES hex.cols now SETI ("scr.colpos", 80, "Column position of cmd.cprompt in visual");
|
// DEPRECATED: USES hex.cols now SETI ("scr.colpos", 80, "Column position of cmd.cprompt in visual");
|
||||||
SETCB ("scr.breakword", "", &cb_scrbreakword, "Emulate console break (^C) when a word is printed (useful for pD)");
|
SETCB ("scr.breakword", "", &cb_scrbreakword, "Emulate console break (^C) when a word is printed (useful for pD)");
|
||||||
SETCB ("scr.breaklines", "false", &cb_breaklines, "Break lines in Visual instead of truncating them");
|
SETCB ("scr.breaklines", "false", &cb_breaklines, "Break lines in Visual instead of truncating them");
|
||||||
|
@ -390,11 +390,7 @@ static const char *rotateAsmemu(RCore *core) {
|
|||||||
R_API void r_core_visual_showcursor(RCore *core, int x) {
|
R_API void r_core_visual_showcursor(RCore *core, int x) {
|
||||||
if (core && core->vmode) {
|
if (core && core->vmode) {
|
||||||
r_cons_show_cursor (x);
|
r_cons_show_cursor (x);
|
||||||
if (!x) {
|
r_cons_enable_mouse (r_config_get_i (core->config, "scr.wheel"));
|
||||||
r_cons_enable_mouse (r_config_get_i (core->config, "scr.wheel"));
|
|
||||||
} else {
|
|
||||||
r_cons_enable_mouse (false);
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
r_cons_enable_mouse (false);
|
r_cons_enable_mouse (false);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user