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;