mirror of
https://github.com/radareorg/radare2.git
synced 2025-02-03 12:12:06 +00:00
Fix #14854 - Fix glitch in asm.hint.pos=0
This commit is contained in:
parent
72df7056f5
commit
8225d57eb4
@ -11,6 +11,7 @@ include $(TOP)/libr/config.mk
|
||||
include p/capstone.mk
|
||||
LDFLAGS+=${CS_LDFLAGS}
|
||||
include $(STOP)/java/deps.mk
|
||||
include $(STOP)/capstone.mk
|
||||
|
||||
.PHONY: all plugins
|
||||
|
||||
|
@ -3501,11 +3501,14 @@ static bool ds_print_core_vmode(RDisasmState *ds, int pos) {
|
||||
break;
|
||||
}
|
||||
if (ds->asm_hint_pos > 0) {
|
||||
int begin = (gotShortcut) ? (ds->asm_hint_pos == 0)? 1: 2: 3;
|
||||
int begin = gotShortcut ? 2: 3;
|
||||
for (i = begin - slen; i > 0; i--) {
|
||||
r_cons_strcat (" ");
|
||||
}
|
||||
}
|
||||
if (ds->asm_hint_pos == 0 && !gotShortcut) {
|
||||
r_cons_strcat (" ");
|
||||
}
|
||||
ds->hinted_line = gotShortcut;
|
||||
return gotShortcut;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user