From ec873f35bddc91496597a12bdd2521f1eef0fc3b Mon Sep 17 00:00:00 2001 From: pancake Date: Mon, 5 Sep 2022 12:27:39 +0200 Subject: [PATCH] Fix Vca - assembly in visual cursor mode losing higher bits of the address --- libr/core/visual.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libr/core/visual.c b/libr/core/visual.c index 72db6260cc..0870caba67 100644 --- a/libr/core/visual.c +++ b/libr/core/visual.c @@ -2695,14 +2695,14 @@ R_API int r_core_visual_cmd(RCore *core, const char *arg) { r_cons_enable_mouse (true); } if (*buf) { + ut64 off = core->offset; if (core->print->cur_enabled) { - int t = core->offset + core->print->cur; + ut64 t = off + core->print->cur; r_core_seek (core, t, false); } r_core_cmd (core, buf, true); if (core->print->cur_enabled) { - int t = core->offset - core->print->cur; - r_core_seek (core, t, true); + r_core_seek (core, off, true); } } r_core_visual_showcursor (core, false);