From cf93e0d9e646491c47979608ccf223cea56fc9ea Mon Sep 17 00:00:00 2001 From: Basile Burg Date: Tue, 12 Jul 2022 17:22:32 +0200 Subject: [PATCH] gdb commander, center view after click on call stack view --- CHANGELOG.md | 6 ++++++ src/u_gdb.pas | 3 +++ 2 files changed, 9 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index ee18a9ea..ca2d17b6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +# v3.9.22-dev + +## Enhancements + +- GDB Commander, center editor view after double click on the call stack. + # v3.9.22 ## Enhancements diff --git a/src/u_gdb.pas b/src/u_gdb.pas index 139bba61..62adefea 100644 --- a/src/u_gdb.pas +++ b/src/u_gdb.pas @@ -3084,7 +3084,10 @@ begin fDocHandler.openDocument(nme); doc := fDocHandler.findDocument(nme); if doc.isAssigned then + begin doc.CaretY:= itm.line; + doc.centerCursor(); + end; gdbCommand('-stack-select-frame ' + intToStr(lstCallStack.ItemIndex)); if fOptions.autoGetVariables then infoVariables;