diff options
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/editem.c | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/gui/editem.c b/src/gui/editem.c index c4295b6..5f326ce 100644 --- a/src/gui/editem.c +++ b/src/gui/editem.c @@ -319,10 +319,18 @@ static void start_moving_to_address_in_view_panel(GtkViewPanel *vpanel, const vm src = gtk_view_panel_get_caret_location(vpanel); - move = g_db_move_new(src, addr); + /* S'il n'y a pas de passif, pas besoin d'historique */ + if (src == NULL) + gtk_view_panel_scroll_to_address(vpanel, addr, SPT_CENTER); - binary = gtk_view_panel_get_binary(vpanel); - g_loaded_binary_add_to_collection(binary, DBF_MOVES, G_DB_ITEM(move)); + else + { + move = g_db_move_new(src, addr); + + binary = gtk_view_panel_get_binary(vpanel); + g_loaded_binary_add_to_collection(binary, DBF_MOVES, G_DB_ITEM(move)); + + } } |