From cdcdde33549f3f2f3c6769966d35ad26d866580e Mon Sep 17 00:00:00 2001 From: Nathan Tran Date: Fri, 12 Mar 2021 02:24:44 +1100 Subject: [PATCH] Fix `+debugger/start` not working (#4782) * Fix `+debugger/start` not working * Correct indentation Co-authored-by: Henrik Lissner --- modules/tools/debugger/autoload/debugger.el | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/tools/debugger/autoload/debugger.el b/modules/tools/debugger/autoload/debugger.el index ab6c96e1c..9896e8876 100644 --- a/modules/tools/debugger/autoload/debugger.el +++ b/modules/tools/debugger/autoload/debugger.el @@ -48,10 +48,10 @@ the debugging configuration of the current buffer." Presents both dap and realgud configurations, and returns a list of the form \('dap ...) or ('realgud ...) containing the corresponding debug configuration infromation." - (let ((result (mapcar (lambda (c) (cons (cadr c) c)) - (append (+debugger--list-for-dap) - (+debugger--list-for-realgud)))) - (completion (completing-read "Start debugger: " (mapcar #'car result) nil t))) + (let* ((result (mapcar (lambda (c) (cons (cadr c) c)) + (append (+debugger--list-for-dap) + (+debugger--list-for-realgud)))) + (completion (completing-read "Start debugger: " (mapcar #'car result) nil t))) (if (or (null completion) (string-empty-p completion)) (user-error "No debugging configuration specified.") (let ((configuration (cdr (assoc completion result))))