summaryrefslogtreecommitdiffstats
path: root/Misc/python-mode.el
diff options
context:
space:
mode:
Diffstat (limited to 'Misc/python-mode.el')
-rw-r--r--Misc/python-mode.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/Misc/python-mode.el b/Misc/python-mode.el
index 4cfcc89..f8b05f5 100644
--- a/Misc/python-mode.el
+++ b/Misc/python-mode.el
@@ -1123,6 +1123,7 @@ comint believe the user typed this string so that
"Watch output for Python prompt and exec next file waiting in queue.
This function is appropriate for `comint-output-filter-functions'."
;; TBD: this should probably use split-string
+ (pop-to-buffer (current-buffer))
(when (and (or (string-equal string ">>> ")
(and (>= (length string) 5)
(string-equal (substring string -5) "\n>>> ")))