branch: master commit c633f3f33338fd5573bddceb88399f6aa44496df Author: Clément Pit--Claudel <clement.pitclau...@live.com> Commit: Clément Pit--Claudel <clement.pitclau...@live.com>
Ignore safe-mode setting when clicking a toolbar button --- realgud/common/cmds.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/realgud/common/cmds.el b/realgud/common/cmds.el index 9516345..c854cd1 100644 --- a/realgud/common/cmds.el +++ b/realgud/common/cmds.el @@ -41,7 +41,9 @@ Similar to GDB's “set confirm”." "Ask use to confirm current command if in safe mode. Use MESSAGE plus a space as the prompt string. Do not confirm when command was run from a menu." - (if (and realgud-safe-mode last-nonmenu-event) + (if (and realgud-safe-mode + last-nonmenu-event + (not (equal last-nonmenu-event '(tool-bar)))) (when (y-or-n-p (concat message " ")) (run-with-timer 0 nil #'message