Mercurial > emacs
changeset 78541:3843f60b914f
(gdb-send): Handle CTRL-D more carefully.
author | Nick Roberts <nickrob@snap.net.nz> |
---|---|
date | Mon, 13 Aug 2007 09:28:31 +0000 |
parents | 9e51e0719eae |
children | 889170c201e6 |
files | lisp/progmodes/gdb-ui.el |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/progmodes/gdb-ui.el Mon Aug 13 09:26:45 2007 +0000 +++ b/lisp/progmodes/gdb-ui.el Mon Aug 13 09:28:31 2007 +0000 @@ -1132,10 +1132,10 @@ (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)))))