summaryrefslogtreecommitdiff
path: root/lisp/progmodes/gdb-ui.el
diff options
context:
space:
mode:
authorNick Roberts <nickrob@snap.net.nz>2007-08-13 09:28:31 +0000
committerNick Roberts <nickrob@snap.net.nz>2007-08-13 09:28:31 +0000
commitcdf71ff2ef86e20d8892da4a938a93e1a0c5377b (patch)
tree918bbfacbbf671a9eb11c7cf52ca158124564f54 /lisp/progmodes/gdb-ui.el
parent9f78fa2c10028d45c29c67efd03fd43368e93bca (diff)
downloademacs-cdf71ff2ef86e20d8892da4a938a93e1a0c5377b.tar.gz
(gdb-send): Handle CTRL-D more carefully.
Diffstat (limited to 'lisp/progmodes/gdb-ui.el')
-rw-r--r--lisp/progmodes/gdb-ui.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/progmodes/gdb-ui.el b/lisp/progmodes/gdb-ui.el
index c4d14462245..716b79138f9 100644
--- a/lisp/progmodes/gdb-ui.el
+++ b/lisp/progmodes/gdb-ui.el
@@ -1132,10 +1132,10 @@ This filter may simply queue input for a later time."
(let ((item (concat string "\n")))
(if gdb-enable-debug (push (cons 'send item) gdb-debug-log))
(process-send-string proc item)))
- (if (and (string-match "\\\\$" string)
- (not comint-input-sender-no-newline)) ;;Try to catch C-d.
+ (if (string-match "\\\\\\'" string)
(setq gdb-continuation (concat gdb-continuation string "\n"))
- (let ((item (concat gdb-continuation string "\n")))
+ (let ((item (concat gdb-continuation string
+ (if (not comint-input-sender-no-newline) "\n"))))
(gdb-enqueue-input item)
(setq gdb-continuation nil)))))