mirror of
https://github.com/radareorg/radare2.git
synced 2025-01-20 20:55:32 +00:00
Fix #20602 - Insert and cursor glitching in hex panel ##visual
This commit is contained in:
parent
469e38c39d
commit
79679dbae0
@ -3616,7 +3616,6 @@ static bool __handle_cursor_mode(RCore *core, const int key) {
|
||||
RPanel *cur = __get_cur_panel (core->panels);
|
||||
RPrint *print = core->print;
|
||||
char *db_val;
|
||||
core->print->cur++;
|
||||
switch (key) {
|
||||
case ':':
|
||||
case ';':
|
||||
|
@ -25,6 +25,8 @@ static R_TH_LOCAL int color = 1;
|
||||
static R_TH_LOCAL int zoom = 0;
|
||||
static R_TH_LOCAL int currentFormat = 0;
|
||||
static R_TH_LOCAL int current0format = 0;
|
||||
static R_TH_LOCAL char numbuf[32] = {0};
|
||||
static R_TH_LOCAL int numbuf_i = 0;
|
||||
|
||||
typedef struct {
|
||||
int x;
|
||||
@ -2152,7 +2154,7 @@ static bool insert_mode_enabled(RCore *core) {
|
||||
core->print->cur = R_MAX (0, core->print->cur - 1);
|
||||
return true;
|
||||
} else if (ch != 'l' && arrows == 'l') {
|
||||
core->print->cur = core->print->cur + 1;
|
||||
core->print->cur++;
|
||||
return true;
|
||||
} else if (ch != 'j' && arrows == 'j') {
|
||||
cursor_nextrow (core, false);
|
||||
@ -2231,7 +2233,7 @@ static bool insert_mode_enabled(RCore *core) {
|
||||
core->print->cur = R_MAX (0, core->print->cur - 1);
|
||||
break;
|
||||
case 'l':
|
||||
core->print->cur = core->print->cur + 1;
|
||||
core->print->cur++;
|
||||
break;
|
||||
case 'j':
|
||||
cursor_nextrow (core, false);
|
||||
@ -2422,9 +2424,6 @@ static bool isNumber(RCore *core, int ch) {
|
||||
return false;
|
||||
}
|
||||
|
||||
static char numbuf[32] = {0};
|
||||
static int numbuf_i = 0;
|
||||
|
||||
static void numbuf_append(int ch) {
|
||||
if (numbuf_i >= sizeof (numbuf) - 1) {
|
||||
numbuf_i = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user