branch: master
commit ca33520fd39d692816d795d7475724082c58673a
Author: Clément Pit--Claudel <[email protected]>
Commit: Clément Pit--Claudel <[email protected]>
Add a prefix arg to "continue" command
Without it, "c" now just continues without prompting.
Discussed in #82.
---
realgud/common/cmds.el | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/realgud/common/cmds.el b/realgud/common/cmds.el
index 21eaa57..72eebd5 100644
--- a/realgud/common/cmds.el
+++ b/realgud/common/cmds.el
@@ -88,10 +88,12 @@ a shortcut for that key."
(realgud:cmd-remap line-num "clear" "clear %l" "X"))
(defun realgud:cmd-continue(&optional arg)
- "Continue execution."
- (interactive "MContinue args: ")
- (realgud:cmd-remap arg "continue" "continue" "c")
-)
+ "Continue execution.
+With prefix argument, prompt for argument to \"continue\"
+command."
+ (interactive (when (consp current-prefix-arg)
+ (list (read-string "Continue args: " nil nil nil t))))
+ (realgud:cmd-remap arg "continue" "continue" "c"))
(defun realgud:cmd-delete(&optional arg)
"Delete breakpoint by number."