mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
(py-comint-output-filter-function): Put the pop-to-buffer call inside
the `when' condition so other non-Python shell comint changes won't cause random buffers to pop.
This commit is contained in:
parent
517c7d4fd3
commit
17afa13a9f
1 changed files with 1 additions and 1 deletions
|
@ -1239,11 +1239,11 @@ 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>>> ")))
|
||||
py-file-queue)
|
||||
(pop-to-buffer (current-buffer))
|
||||
(py-safe (delete-file (car py-file-queue)))
|
||||
(setq py-file-queue (cdr py-file-queue))
|
||||
(if py-file-queue
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue